docstring_tokens
stringlengths 0
76.5k
| code_tokens
stringlengths 75
1.81M
| label_window
sequencelengths 4
2.12k
| html_url
stringlengths 74
116
| file_name
stringlengths 3
311
|
---|---|---|---|---|
wrapperRef?: any; | <mask> // ariaLabelledby?: string;
<mask> /**
<mask> * Ref to be passed to Icon's wrapper Box
<mask> */
<mask> wrapperRef?: MutableRefObject<any>;
<mask> ref?: MutableRefObject<any>;
<mask> }
<mask> export interface ICheckboxGroupProps extends IBoxProps {
<mask> /**
<mask> * assign id to checkbox group
</s> feat: new prop resolution changes in button </s> remove wrapperRef?: MutableRefObject<any>;
</s> add wrapperRef?: any; </s> remove {...pressableProps}
{...(isLoading && _loading)}
{...(isDisabled && _disabled)}
</s> add onPressIn={composeEventHandlers(onPressIn, pressableProps.onPressIn)}
onPressOut={composeEventHandlers(onPressOut, pressableProps.onPressOut)}
// @ts-ignore - web only
onHoverIn={composeEventHandlers(onHoverIn, hoverProps.onHoverIn)}
// @ts-ignore - web only
onHoverOut={composeEventHandlers(onHoverOut, hoverProps.onHoverOut)}
// @ts-ignore - web only
onFocus={composeEventHandlers(
composeEventHandlers(onFocus, focusProps.onFocus)
// focusRingProps.onFocu
)}
// @ts-ignore - web only
onBlur={composeEventHandlers(
composeEventHandlers(onBlur, focusProps.onBlur)
// focusRingProps.onBlur
)}
{...resolvedProps} </s> remove const pressableProps = {
...resolvedProps,
_hover,
_pressed,
_focus,
_focusVisible,
};
</s> add // const pressableProps = {
// ...resolvedProps,
// _hover,
// _pressed,
// _focus,
// _focusVisible,
// }; </s> remove {/* TODO: Replace Render props with Context Hook */}
{/* TODO: Can look for a simpler wat to do this */}
{({ isPressed, isHovered, isFocused }) => {
const focusTextProps = isFocused &&
_focus?._text && { ..._focus._text };
const hoverTextProps = isHovered &&
_hover?._text && { ..._hover._text };
const pressedTextProps = isPressed &&
_pressed?._text && { ..._pressed._text };
const disabledTextProps = isDisabled &&
_disabled?._text && { ..._disabled._text };
const focusVisibleTextProps = isFocused &&
_focusVisible?._text && { ..._focusVisible._text };
const loadingTextProps = isLoading &&
_loading?._text && { ..._loading._text };
const boxChildren =
isLoading && isLoadingText ? isLoadingText : children;
const spinnerElement = spinner ? (
spinner
) : (
<Spinner
color={loadingTextProps?.color || _text?.color}
{...spinnerProps}
{..._spinner}
/>
);
return (
<HStack {..._stack}>
{startIcon && !isLoading ? startIcon : null}
{isLoading && spinnerPlacement === 'start' ? spinnerElement : null}
{boxChildren ? (
<Box
_text={{
..._text,
...hoverTextProps,
...focusTextProps,
...focusVisibleTextProps,
...pressedTextProps,
...loadingTextProps,
...disabledTextProps,
}}
>
{isLoading && isLoadingText ? isLoadingText : children}
</Box>
) : null}
</s> add <HStack {..._stack}>
{startIcon && !isLoading ? startIcon : null}
{isLoading && spinnerPlacement === 'start' ? spinnerElement : null}
{boxChildren ? (
<Box
_text={{
..._text,
// ...hoverTextProps,
// ...focusTextProps,
// ...focusVisibleTextProps,
// ...pressedTextProps,
// ...loadingTextProps,
// ...disabledTextProps,
}}
>
{isLoading && isLoadingText ? isLoadingText : children}
</Box>
) : null} </s> remove // { isDisabled, isLoading, isHovered, isFocusVisible, isFocused },
{},
</s> add { isDisabled, isLoading, isHovered, isFocused, isPressed }, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e4957044a998e750991b4ecf852025d3a99681ee | src/components/primitives/Checkbox/types.tsx |
wrapperRef?: any; | <mask> icon?: JSX.Element;
<mask> /**
<mask> * Ref to be passed to Icon's wrapper Box
<mask> */
<mask> wrapperRef?: MutableRefObject<any>;
<mask> }
<mask> export interface IRadioGroupProps extends IBoxProps {
<mask> /**
<mask> * The value of the radio group.
<mask> */
</s> feat: new prop resolution changes in button </s> remove wrapperRef?: MutableRefObject<any>;
</s> add wrapperRef?: any; </s> remove return <Button onPress={() => console.log('hello world')}>PRIMARY</Button>;
</s> add return (
<Button
_pressed={{ bg: 'red.400' }}
onPress={() => console.log('hello world')}
>
PRIMARY
</Button>
); </s> remove {...pressableProps}
{...(isLoading && _loading)}
{...(isDisabled && _disabled)}
</s> add onPressIn={composeEventHandlers(onPressIn, pressableProps.onPressIn)}
onPressOut={composeEventHandlers(onPressOut, pressableProps.onPressOut)}
// @ts-ignore - web only
onHoverIn={composeEventHandlers(onHoverIn, hoverProps.onHoverIn)}
// @ts-ignore - web only
onHoverOut={composeEventHandlers(onHoverOut, hoverProps.onHoverOut)}
// @ts-ignore - web only
onFocus={composeEventHandlers(
composeEventHandlers(onFocus, focusProps.onFocus)
// focusRingProps.onFocu
)}
// @ts-ignore - web only
onBlur={composeEventHandlers(
composeEventHandlers(onBlur, focusProps.onBlur)
// focusRingProps.onBlur
)}
{...resolvedProps} </s> remove const { isDisabled, isLoading } = props;
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e4957044a998e750991b4ecf852025d3a99681ee | src/components/primitives/Radio/types.tsx |
_spinner: { | <mask> },
<mask> _disabled: {
<mask> opacity: 0.5,
<mask> },
<mask> spinnerProps: {
<mask> size: 'sm',
<mask> },
<mask> };
<mask> };
<mask>
</s> feat: new prop resolution changes in button </s> remove spinnerProps: {
</s> add _spinner: { </s> remove // { isDisabled, isLoading, isHovered, isFocusVisible, isFocused },
{},
</s> add { isDisabled, isLoading, isHovered, isFocused, isPressed }, </s> remove spinnerProps,
</s> add </s> remove const pressableProps = {
...resolvedProps,
_hover,
_pressed,
_focus,
_focusVisible,
};
</s> add // const pressableProps = {
// ...resolvedProps,
// _hover,
// _pressed,
// _focus,
// _focusVisible,
// }; </s> remove {/* TODO: Replace Render props with Context Hook */}
{/* TODO: Can look for a simpler wat to do this */}
{({ isPressed, isHovered, isFocused }) => {
const focusTextProps = isFocused &&
_focus?._text && { ..._focus._text };
const hoverTextProps = isHovered &&
_hover?._text && { ..._hover._text };
const pressedTextProps = isPressed &&
_pressed?._text && { ..._pressed._text };
const disabledTextProps = isDisabled &&
_disabled?._text && { ..._disabled._text };
const focusVisibleTextProps = isFocused &&
_focusVisible?._text && { ..._focusVisible._text };
const loadingTextProps = isLoading &&
_loading?._text && { ..._loading._text };
const boxChildren =
isLoading && isLoadingText ? isLoadingText : children;
const spinnerElement = spinner ? (
spinner
) : (
<Spinner
color={loadingTextProps?.color || _text?.color}
{...spinnerProps}
{..._spinner}
/>
);
return (
<HStack {..._stack}>
{startIcon && !isLoading ? startIcon : null}
{isLoading && spinnerPlacement === 'start' ? spinnerElement : null}
{boxChildren ? (
<Box
_text={{
..._text,
...hoverTextProps,
...focusTextProps,
...focusVisibleTextProps,
...pressedTextProps,
...loadingTextProps,
...disabledTextProps,
}}
>
{isLoading && isLoadingText ? isLoadingText : children}
</Box>
) : null}
</s> add <HStack {..._stack}>
{startIcon && !isLoading ? startIcon : null}
{isLoading && spinnerPlacement === 'start' ? spinnerElement : null}
{boxChildren ? (
<Box
_text={{
..._text,
// ...hoverTextProps,
// ...focusTextProps,
// ...focusVisibleTextProps,
// ...pressedTextProps,
// ...loadingTextProps,
// ...disabledTextProps,
}}
>
{isLoading && isLoadingText ? isLoadingText : children}
</Box>
) : null} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e4957044a998e750991b4ecf852025d3a99681ee | src/theme/components/button.ts |
_spinner: { | <mask> },
<mask> _pressed: {
<mask> bg: transparentize(mode(`${c}.200`, `${c}.500`)(props), 0.6)(props.theme),
<mask> },
<mask> spinnerProps: {
<mask> size: 'sm',
<mask> },
<mask> };
<mask> }
<mask>
</s> feat: new prop resolution changes in button </s> remove spinnerProps: {
</s> add _spinner: { </s> remove // { isDisabled, isLoading, isHovered, isFocusVisible, isFocused },
{},
</s> add { isDisabled, isLoading, isHovered, isFocused, isPressed }, </s> remove spinnerProps,
</s> add </s> remove return <Button onPress={() => console.log('hello world')}>PRIMARY</Button>;
</s> add return (
<Button
_pressed={{ bg: 'red.400' }}
onPress={() => console.log('hello world')}
>
PRIMARY
</Button>
); </s> remove const pressableProps = {
...resolvedProps,
_hover,
_pressed,
_focus,
_focusVisible,
};
</s> add // const pressableProps = {
// ...resolvedProps,
// _hover,
// _pressed,
// _focus,
// _focusVisible,
// }; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e4957044a998e750991b4ecf852025d3a99681ee | src/theme/components/button.ts |
const { theme, status, variant } = props;
let { colorScheme } = props; | <mask> return styleObject;
<mask> }
<mask>
<mask> function getBg(props: Record<string, any>) {
<mask> let { theme, colorScheme, status, variant } = props;
<mask>
<mask> colorScheme = getColorScheme(
<mask> props,
<mask> colorScheme !== 'primary' ? colorScheme : status
<mask> );
</s> feat: new prop resolution changes in button </s> remove const { isDisabled, isLoading } = props;
</s> add </s> remove // { isDisabled, isLoading, isHovered, isFocusVisible, isFocused },
{},
</s> add { isDisabled, isLoading, isHovered, isFocused, isPressed }, </s> remove {/* TODO: Replace Render props with Context Hook */}
{/* TODO: Can look for a simpler wat to do this */}
{({ isPressed, isHovered, isFocused }) => {
const focusTextProps = isFocused &&
_focus?._text && { ..._focus._text };
const hoverTextProps = isHovered &&
_hover?._text && { ..._hover._text };
const pressedTextProps = isPressed &&
_pressed?._text && { ..._pressed._text };
const disabledTextProps = isDisabled &&
_disabled?._text && { ..._disabled._text };
const focusVisibleTextProps = isFocused &&
_focusVisible?._text && { ..._focusVisible._text };
const loadingTextProps = isLoading &&
_loading?._text && { ..._loading._text };
const boxChildren =
isLoading && isLoadingText ? isLoadingText : children;
const spinnerElement = spinner ? (
spinner
) : (
<Spinner
color={loadingTextProps?.color || _text?.color}
{...spinnerProps}
{..._spinner}
/>
);
return (
<HStack {..._stack}>
{startIcon && !isLoading ? startIcon : null}
{isLoading && spinnerPlacement === 'start' ? spinnerElement : null}
{boxChildren ? (
<Box
_text={{
..._text,
...hoverTextProps,
...focusTextProps,
...focusVisibleTextProps,
...pressedTextProps,
...loadingTextProps,
...disabledTextProps,
}}
>
{isLoading && isLoadingText ? isLoadingText : children}
</Box>
) : null}
</s> add <HStack {..._stack}>
{startIcon && !isLoading ? startIcon : null}
{isLoading && spinnerPlacement === 'start' ? spinnerElement : null}
{boxChildren ? (
<Box
_text={{
..._text,
// ...hoverTextProps,
// ...focusTextProps,
// ...focusVisibleTextProps,
// ...pressedTextProps,
// ...loadingTextProps,
// ...disabledTextProps,
}}
>
{isLoading && isLoadingText ? isLoadingText : children}
</Box>
) : null} </s> remove spinnerProps,
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e4957044a998e750991b4ecf852025d3a99681ee | src/theme/components/button.ts |
import { Switch as RNSwitch } from 'react-native'; | <mask> import React, { memo, forwardRef } from 'react';
<mask> import { useToggleState } from '@react-stately/toggle';
<mask> import { StyleSheet, ViewStyle, Switch as RNSwitch } from 'react-native';
<mask> import isNil from 'lodash.isnil';
<mask> import { usePropsResolution } from '../../../hooks/useThemeProps';
<mask> import { useToken } from '../../../hooks';
<mask> import { makeStyledComponent } from '../../../utils/styled';
<mask> import type { ISwitchProps } from './types';
</s> fix: switch toggling issue with value </s> remove const { onTrackColor, offTrackColor, onThumbColor, offThumbColor } = props;
</s> add </s> remove const inValidPropFactors = {
borderWidth: 1,
borderRadius: 16,
borderColor: borderColorInvalid,
};
</s> add </s> remove
</s> add //TODO: Use of Platform can be removed </s> remove style: themeStyle,
</s> add </s> remove isDisabled,
</s> add isDisabled: disabled || isDisabled, | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e4d5832ff553fc41104295e0e7639a184e1c9988 | src/components/primitives/Switch/index.tsx |
disabled, | <mask>
<mask> // TODO: Needs proper refactor
<mask> const Switch = (
<mask> {
<mask> style,
<mask> onToggle,
<mask> isDisabled,
<mask> isInvalid,
<mask> isChecked,
<mask> defaultIsChecked,
<mask> accessibilityLabel,
</s> fix: switch toggling issue with value </s> remove isDisabled,
</s> add isDisabled: disabled || isDisabled, </s> remove const computedStyle: ViewStyle = StyleSheet.flatten([
themeStyle,
style,
isInvalid ? inValidPropFactors : {},
]);
</s> add </s> remove style: themeStyle,
</s> add </s> remove import { StyleSheet, ViewStyle, Switch as RNSwitch } from 'react-native';
</s> add import { Switch as RNSwitch } from 'react-native'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e4d5832ff553fc41104295e0e7639a184e1c9988 | src/components/primitives/Switch/index.tsx |
onToggle,
value,
onValueChange, | <mask> isChecked,
<mask> defaultIsChecked,
<mask> accessibilityLabel,
<mask> accessibilityHint,
<mask> ...props
<mask> }: ISwitchProps,
<mask> ref: any
<mask> ) => {
</s> fix: switch toggling issue with value </s> remove style,
onToggle,
</s> add disabled, </s> remove
const borderColorInvalid = useToken('colors', 'danger.600');
</s> add </s> remove const { onTrackColor, offTrackColor, onThumbColor, offThumbColor } = props;
</s> add </s> remove
</s> add //TODO: Use of Platform can be removed </s> remove import { StyleSheet, ViewStyle, Switch as RNSwitch } from 'react-native';
</s> add import { Switch as RNSwitch } from 'react-native'; | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e4d5832ff553fc41104295e0e7639a184e1c9988 | src/components/primitives/Switch/index.tsx |
<mask> ) => {
<mask> const state = useToggleState({
<mask> defaultSelected: !isNil(defaultIsChecked) ? defaultIsChecked : false,
<mask> });
<mask>
<mask> const borderColorInvalid = useToken('colors', 'danger.600');
<mask> const checked = !isNil(isChecked) ? isChecked : state.isSelected;
<mask> const inValidPropFactors = {
<mask> borderWidth: 1,
<mask> borderRadius: 16,
<mask> borderColor: borderColorInvalid,
</s> fix: switch toggling issue with value </s> remove const inValidPropFactors = {
borderWidth: 1,
borderRadius: 16,
borderColor: borderColorInvalid,
};
</s> add </s> remove const computedStyle: ViewStyle = StyleSheet.flatten([
themeStyle,
style,
isInvalid ? inValidPropFactors : {},
]);
</s> add </s> remove offTrackColor:
offTrackColor ??
mode(
Platform.OS !== 'ios' ? 'gray.400' : 'gray.200',
Platform.OS !== 'ios' ? 'gray.700' : 'gray.600'
)(props),
onTrackColor:
onTrackColor ??
mode(
Platform.OS !== 'ios' ? `${colorScheme}.300` : `${colorScheme}.500`,
Platform.OS !== 'ios' ? `${colorScheme}.700` : `${colorScheme}.500`
)(props),
onThumbColor:
onThumbColor ??
mode(
Platform.OS !== 'ios' ? `${colorScheme}.600` : 'white',
Platform.OS !== 'ios' ? `${colorScheme}.500` : 'white'
)(props),
offThumbColor:
offThumbColor ??
mode(
Platform.OS !== 'ios' ? 'gray.100' : 'white',
Platform.OS !== 'ios' ? 'gray.200' : 'white'
)(props),
</s> add _disabled: {
opacity: 0.4,
},
_invalid: {
borderWidth: 1,
borderRadius: 16,
borderColor: 'danger.600',
},
offTrackColor: mode(
Platform.OS !== 'ios' ? 'gray.400' : 'gray.200',
Platform.OS !== 'ios' ? 'gray.700' : 'gray.600'
)(props),
onTrackColor: mode(
Platform.OS !== 'ios' ? `${colorScheme}.300` : `${colorScheme}.500`,
Platform.OS !== 'ios' ? `${colorScheme}.700` : `${colorScheme}.500`
)(props),
onThumbColor: mode(
Platform.OS !== 'ios' ? `${colorScheme}.600` : 'white',
Platform.OS !== 'ios' ? `${colorScheme}.500` : 'white'
)(props),
offThumbColor: mode(
Platform.OS !== 'ios' ? 'gray.100' : 'white',
Platform.OS !== 'ios' ? 'gray.200' : 'white'
)(props), </s> remove
</s> add //TODO: Use of Platform can be removed </s> remove const { onTrackColor, offTrackColor, onThumbColor, offThumbColor } = props;
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e4d5832ff553fc41104295e0e7639a184e1c9988 | src/components/primitives/Switch/index.tsx |
|
<mask> });
<mask>
<mask> const borderColorInvalid = useToken('colors', 'danger.600');
<mask> const checked = !isNil(isChecked) ? isChecked : state.isSelected;
<mask> const inValidPropFactors = {
<mask> borderWidth: 1,
<mask> borderRadius: 16,
<mask> borderColor: borderColorInvalid,
<mask> };
<mask>
<mask> const _ref = React.useRef(null);
<mask> const { isHovered } = useHover({}, _ref);
<mask>
<mask> const {
<mask> onTrackColor: _onTrackColor,
</s> fix: switch toggling issue with value </s> remove
const borderColorInvalid = useToken('colors', 'danger.600');
</s> add </s> remove const computedStyle: ViewStyle = StyleSheet.flatten([
themeStyle,
style,
isInvalid ? inValidPropFactors : {},
]);
</s> add </s> remove offTrackColor:
offTrackColor ??
mode(
Platform.OS !== 'ios' ? 'gray.400' : 'gray.200',
Platform.OS !== 'ios' ? 'gray.700' : 'gray.600'
)(props),
onTrackColor:
onTrackColor ??
mode(
Platform.OS !== 'ios' ? `${colorScheme}.300` : `${colorScheme}.500`,
Platform.OS !== 'ios' ? `${colorScheme}.700` : `${colorScheme}.500`
)(props),
onThumbColor:
onThumbColor ??
mode(
Platform.OS !== 'ios' ? `${colorScheme}.600` : 'white',
Platform.OS !== 'ios' ? `${colorScheme}.500` : 'white'
)(props),
offThumbColor:
offThumbColor ??
mode(
Platform.OS !== 'ios' ? 'gray.100' : 'white',
Platform.OS !== 'ios' ? 'gray.200' : 'white'
)(props),
</s> add _disabled: {
opacity: 0.4,
},
_invalid: {
borderWidth: 1,
borderRadius: 16,
borderColor: 'danger.600',
},
offTrackColor: mode(
Platform.OS !== 'ios' ? 'gray.400' : 'gray.200',
Platform.OS !== 'ios' ? 'gray.700' : 'gray.600'
)(props),
onTrackColor: mode(
Platform.OS !== 'ios' ? `${colorScheme}.300` : `${colorScheme}.500`,
Platform.OS !== 'ios' ? `${colorScheme}.700` : `${colorScheme}.500`
)(props),
onThumbColor: mode(
Platform.OS !== 'ios' ? `${colorScheme}.600` : 'white',
Platform.OS !== 'ios' ? `${colorScheme}.500` : 'white'
)(props),
offThumbColor: mode(
Platform.OS !== 'ios' ? 'gray.100' : 'white',
Platform.OS !== 'ios' ? 'gray.200' : 'white'
)(props), </s> remove
</s> add //TODO: Use of Platform can be removed </s> remove const { onTrackColor, offTrackColor, onThumbColor, offThumbColor } = props;
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e4d5832ff553fc41104295e0e7639a184e1c9988 | src/components/primitives/Switch/index.tsx |
|
<mask> onTrackColor: _onTrackColor,
<mask> offTrackColor: _offTrackColor,
<mask> onThumbColor: _onThumbColor,
<mask> offThumbColor: _offThumbColor,
<mask> style: themeStyle,
<mask> ...resolvedProps
<mask> } = usePropsResolution('Switch', props, {
<mask> isHovered,
<mask> isDisabled,
<mask> isInvalid,
</s> fix: switch toggling issue with value </s> remove isDisabled,
</s> add isDisabled: disabled || isDisabled, </s> remove const inValidPropFactors = {
borderWidth: 1,
borderRadius: 16,
borderColor: borderColorInvalid,
};
</s> add </s> remove offTrackColor:
offTrackColor ??
mode(
Platform.OS !== 'ios' ? 'gray.400' : 'gray.200',
Platform.OS !== 'ios' ? 'gray.700' : 'gray.600'
)(props),
onTrackColor:
onTrackColor ??
mode(
Platform.OS !== 'ios' ? `${colorScheme}.300` : `${colorScheme}.500`,
Platform.OS !== 'ios' ? `${colorScheme}.700` : `${colorScheme}.500`
)(props),
onThumbColor:
onThumbColor ??
mode(
Platform.OS !== 'ios' ? `${colorScheme}.600` : 'white',
Platform.OS !== 'ios' ? `${colorScheme}.500` : 'white'
)(props),
offThumbColor:
offThumbColor ??
mode(
Platform.OS !== 'ios' ? 'gray.100' : 'white',
Platform.OS !== 'ios' ? 'gray.200' : 'white'
)(props),
</s> add _disabled: {
opacity: 0.4,
},
_invalid: {
borderWidth: 1,
borderRadius: 16,
borderColor: 'danger.600',
},
offTrackColor: mode(
Platform.OS !== 'ios' ? 'gray.400' : 'gray.200',
Platform.OS !== 'ios' ? 'gray.700' : 'gray.600'
)(props),
onTrackColor: mode(
Platform.OS !== 'ios' ? `${colorScheme}.300` : `${colorScheme}.500`,
Platform.OS !== 'ios' ? `${colorScheme}.700` : `${colorScheme}.500`
)(props),
onThumbColor: mode(
Platform.OS !== 'ios' ? `${colorScheme}.600` : 'white',
Platform.OS !== 'ios' ? `${colorScheme}.500` : 'white'
)(props),
offThumbColor: mode(
Platform.OS !== 'ios' ? 'gray.100' : 'white',
Platform.OS !== 'ios' ? 'gray.200' : 'white'
)(props), </s> remove style,
onToggle,
</s> add disabled, </s> remove const { onTrackColor, offTrackColor, onThumbColor, offThumbColor } = props;
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e4d5832ff553fc41104295e0e7639a184e1c9988 | src/components/primitives/Switch/index.tsx |
|
isDisabled: disabled || isDisabled, | <mask> style: themeStyle,
<mask> ...resolvedProps
<mask> } = usePropsResolution('Switch', props, {
<mask> isHovered,
<mask> isDisabled,
<mask> isInvalid,
<mask> isChecked: checked,
<mask> });
<mask>
<mask> const computedStyle: ViewStyle = StyleSheet.flatten([
</s> fix: switch toggling issue with value </s> remove style: themeStyle,
</s> add </s> remove const computedStyle: ViewStyle = StyleSheet.flatten([
themeStyle,
style,
isInvalid ? inValidPropFactors : {},
]);
</s> add </s> remove style,
onToggle,
</s> add disabled, </s> remove const inValidPropFactors = {
borderWidth: 1,
borderRadius: 16,
borderColor: borderColorInvalid,
};
</s> add </s> remove
const borderColorInvalid = useToken('colors', 'danger.600');
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e4d5832ff553fc41104295e0e7639a184e1c9988 | src/components/primitives/Switch/index.tsx |
<mask> isInvalid,
<mask> isChecked: checked,
<mask> });
<mask>
<mask> const computedStyle: ViewStyle = StyleSheet.flatten([
<mask> themeStyle,
<mask> style,
<mask> isInvalid ? inValidPropFactors : {},
<mask> ]);
<mask>
<mask> const onTrackColor = useToken('colors', _onTrackColor);
<mask> const offTrackColor = useToken('colors', _offTrackColor);
<mask> const onThumbColor = useToken('colors', _onThumbColor);
<mask> const offThumbColor = useToken('colors', _offThumbColor);
<mask>
</s> fix: switch toggling issue with value </s> remove isDisabled,
</s> add isDisabled: disabled || isDisabled, </s> remove
const borderColorInvalid = useToken('colors', 'danger.600');
</s> add </s> remove const inValidPropFactors = {
borderWidth: 1,
borderRadius: 16,
borderColor: borderColorInvalid,
};
</s> add </s> remove
</s> add //TODO: Use of Platform can be removed </s> remove const { onTrackColor, offTrackColor, onThumbColor, offThumbColor } = props;
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e4d5832ff553fc41104295e0e7639a184e1c9988 | src/components/primitives/Switch/index.tsx |
|
disabled={disabled || isDisabled}
onValueChange={(val: boolean) => {
onValueChange && onValueChange(val);
onToggle ? onToggle() : state.toggle();
}}
value={value || checked} | <mask> thumbColor={checked ? onThumbColor : offThumbColor}
<mask> activeThumbColor={onThumbColor} // react-native-web prop for active thumbColor
<mask> ios_backgroundColor={offTrackColor}
<mask> {...resolvedProps}
<mask> disabled={isDisabled}
<mask> onValueChange={onToggle ? onToggle : state.toggle}
<mask> value={checked}
<mask> style={computedStyle}
<mask> ref={mergeRefs([ref, _ref])}
<mask> opacity={isDisabled ? 0.4 : 1}
<mask> />
<mask> );
<mask> };
</s> fix: switch toggling issue with value </s> remove opacity={isDisabled ? 0.4 : 1}
</s> add </s> remove offTrackColor:
offTrackColor ??
mode(
Platform.OS !== 'ios' ? 'gray.400' : 'gray.200',
Platform.OS !== 'ios' ? 'gray.700' : 'gray.600'
)(props),
onTrackColor:
onTrackColor ??
mode(
Platform.OS !== 'ios' ? `${colorScheme}.300` : `${colorScheme}.500`,
Platform.OS !== 'ios' ? `${colorScheme}.700` : `${colorScheme}.500`
)(props),
onThumbColor:
onThumbColor ??
mode(
Platform.OS !== 'ios' ? `${colorScheme}.600` : 'white',
Platform.OS !== 'ios' ? `${colorScheme}.500` : 'white'
)(props),
offThumbColor:
offThumbColor ??
mode(
Platform.OS !== 'ios' ? 'gray.100' : 'white',
Platform.OS !== 'ios' ? 'gray.200' : 'white'
)(props),
</s> add _disabled: {
opacity: 0.4,
},
_invalid: {
borderWidth: 1,
borderRadius: 16,
borderColor: 'danger.600',
},
offTrackColor: mode(
Platform.OS !== 'ios' ? 'gray.400' : 'gray.200',
Platform.OS !== 'ios' ? 'gray.700' : 'gray.600'
)(props),
onTrackColor: mode(
Platform.OS !== 'ios' ? `${colorScheme}.300` : `${colorScheme}.500`,
Platform.OS !== 'ios' ? `${colorScheme}.700` : `${colorScheme}.500`
)(props),
onThumbColor: mode(
Platform.OS !== 'ios' ? `${colorScheme}.600` : 'white',
Platform.OS !== 'ios' ? `${colorScheme}.500` : 'white'
)(props),
offThumbColor: mode(
Platform.OS !== 'ios' ? 'gray.100' : 'white',
Platform.OS !== 'ios' ? 'gray.200' : 'white'
)(props), </s> remove const computedStyle: ViewStyle = StyleSheet.flatten([
themeStyle,
style,
isInvalid ? inValidPropFactors : {},
]);
</s> add </s> remove
const borderColorInvalid = useToken('colors', 'danger.600');
</s> add </s> remove const inValidPropFactors = {
borderWidth: 1,
borderRadius: 16,
borderColor: borderColorInvalid,
};
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e4d5832ff553fc41104295e0e7639a184e1c9988 | src/components/primitives/Switch/index.tsx |
<mask> onValueChange={onToggle ? onToggle : state.toggle}
<mask> value={checked}
<mask> style={computedStyle}
<mask> ref={mergeRefs([ref, _ref])}
<mask> opacity={isDisabled ? 0.4 : 1}
<mask> />
<mask> );
<mask> };
<mask>
<mask> export default memo(forwardRef(Switch));
</s> fix: switch toggling issue with value </s> remove disabled={isDisabled}
onValueChange={onToggle ? onToggle : state.toggle}
value={checked}
style={computedStyle}
</s> add disabled={disabled || isDisabled}
onValueChange={(val: boolean) => {
onValueChange && onValueChange(val);
onToggle ? onToggle() : state.toggle();
}}
value={value || checked} </s> remove offTrackColor:
offTrackColor ??
mode(
Platform.OS !== 'ios' ? 'gray.400' : 'gray.200',
Platform.OS !== 'ios' ? 'gray.700' : 'gray.600'
)(props),
onTrackColor:
onTrackColor ??
mode(
Platform.OS !== 'ios' ? `${colorScheme}.300` : `${colorScheme}.500`,
Platform.OS !== 'ios' ? `${colorScheme}.700` : `${colorScheme}.500`
)(props),
onThumbColor:
onThumbColor ??
mode(
Platform.OS !== 'ios' ? `${colorScheme}.600` : 'white',
Platform.OS !== 'ios' ? `${colorScheme}.500` : 'white'
)(props),
offThumbColor:
offThumbColor ??
mode(
Platform.OS !== 'ios' ? 'gray.100' : 'white',
Platform.OS !== 'ios' ? 'gray.200' : 'white'
)(props),
</s> add _disabled: {
opacity: 0.4,
},
_invalid: {
borderWidth: 1,
borderRadius: 16,
borderColor: 'danger.600',
},
offTrackColor: mode(
Platform.OS !== 'ios' ? 'gray.400' : 'gray.200',
Platform.OS !== 'ios' ? 'gray.700' : 'gray.600'
)(props),
onTrackColor: mode(
Platform.OS !== 'ios' ? `${colorScheme}.300` : `${colorScheme}.500`,
Platform.OS !== 'ios' ? `${colorScheme}.700` : `${colorScheme}.500`
)(props),
onThumbColor: mode(
Platform.OS !== 'ios' ? `${colorScheme}.600` : 'white',
Platform.OS !== 'ios' ? `${colorScheme}.500` : 'white'
)(props),
offThumbColor: mode(
Platform.OS !== 'ios' ? 'gray.100' : 'white',
Platform.OS !== 'ios' ? 'gray.200' : 'white'
)(props), </s> remove
const borderColorInvalid = useToken('colors', 'danger.600');
</s> add </s> remove const inValidPropFactors = {
borderWidth: 1,
borderRadius: 16,
borderColor: borderColorInvalid,
};
</s> add </s> remove const computedStyle: ViewStyle = StyleSheet.flatten([
themeStyle,
style,
isInvalid ? inValidPropFactors : {},
]);
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e4d5832ff553fc41104295e0e7639a184e1c9988 | src/components/primitives/Switch/index.tsx |
|
<mask> import { mode, getColorScheme } from '../tools';
<mask> import { Platform } from 'react-native';
<mask>
<mask> const baseStyle = (props: Record<string, any>) => {
<mask> const { onTrackColor, offTrackColor, onThumbColor, offThumbColor } = props;
<mask> const colorScheme = getColorScheme(props);
<mask>
<mask> return {
<mask> offTrackColor:
<mask> offTrackColor ??
</s> fix: switch toggling issue with value </s> remove
</s> add //TODO: Use of Platform can be removed </s> remove import { StyleSheet, ViewStyle, Switch as RNSwitch } from 'react-native';
</s> add import { Switch as RNSwitch } from 'react-native'; </s> remove offTrackColor:
offTrackColor ??
mode(
Platform.OS !== 'ios' ? 'gray.400' : 'gray.200',
Platform.OS !== 'ios' ? 'gray.700' : 'gray.600'
)(props),
onTrackColor:
onTrackColor ??
mode(
Platform.OS !== 'ios' ? `${colorScheme}.300` : `${colorScheme}.500`,
Platform.OS !== 'ios' ? `${colorScheme}.700` : `${colorScheme}.500`
)(props),
onThumbColor:
onThumbColor ??
mode(
Platform.OS !== 'ios' ? `${colorScheme}.600` : 'white',
Platform.OS !== 'ios' ? `${colorScheme}.500` : 'white'
)(props),
offThumbColor:
offThumbColor ??
mode(
Platform.OS !== 'ios' ? 'gray.100' : 'white',
Platform.OS !== 'ios' ? 'gray.200' : 'white'
)(props),
</s> add _disabled: {
opacity: 0.4,
},
_invalid: {
borderWidth: 1,
borderRadius: 16,
borderColor: 'danger.600',
},
offTrackColor: mode(
Platform.OS !== 'ios' ? 'gray.400' : 'gray.200',
Platform.OS !== 'ios' ? 'gray.700' : 'gray.600'
)(props),
onTrackColor: mode(
Platform.OS !== 'ios' ? `${colorScheme}.300` : `${colorScheme}.500`,
Platform.OS !== 'ios' ? `${colorScheme}.700` : `${colorScheme}.500`
)(props),
onThumbColor: mode(
Platform.OS !== 'ios' ? `${colorScheme}.600` : 'white',
Platform.OS !== 'ios' ? `${colorScheme}.500` : 'white'
)(props),
offThumbColor: mode(
Platform.OS !== 'ios' ? 'gray.100' : 'white',
Platform.OS !== 'ios' ? 'gray.200' : 'white'
)(props), </s> remove const inValidPropFactors = {
borderWidth: 1,
borderRadius: 16,
borderColor: borderColorInvalid,
};
</s> add </s> remove
const borderColorInvalid = useToken('colors', 'danger.600');
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e4d5832ff553fc41104295e0e7639a184e1c9988 | src/theme/components/switch.ts |
|
//TODO: Use of Platform can be removed | <mask>
<mask> const baseStyle = (props: Record<string, any>) => {
<mask> const { onTrackColor, offTrackColor, onThumbColor, offThumbColor } = props;
<mask> const colorScheme = getColorScheme(props);
<mask>
<mask> return {
<mask> offTrackColor:
<mask> offTrackColor ??
<mask> mode(
<mask> Platform.OS !== 'ios' ? 'gray.400' : 'gray.200',
</s> fix: switch toggling issue with value </s> remove const { onTrackColor, offTrackColor, onThumbColor, offThumbColor } = props;
</s> add </s> remove offTrackColor:
offTrackColor ??
mode(
Platform.OS !== 'ios' ? 'gray.400' : 'gray.200',
Platform.OS !== 'ios' ? 'gray.700' : 'gray.600'
)(props),
onTrackColor:
onTrackColor ??
mode(
Platform.OS !== 'ios' ? `${colorScheme}.300` : `${colorScheme}.500`,
Platform.OS !== 'ios' ? `${colorScheme}.700` : `${colorScheme}.500`
)(props),
onThumbColor:
onThumbColor ??
mode(
Platform.OS !== 'ios' ? `${colorScheme}.600` : 'white',
Platform.OS !== 'ios' ? `${colorScheme}.500` : 'white'
)(props),
offThumbColor:
offThumbColor ??
mode(
Platform.OS !== 'ios' ? 'gray.100' : 'white',
Platform.OS !== 'ios' ? 'gray.200' : 'white'
)(props),
</s> add _disabled: {
opacity: 0.4,
},
_invalid: {
borderWidth: 1,
borderRadius: 16,
borderColor: 'danger.600',
},
offTrackColor: mode(
Platform.OS !== 'ios' ? 'gray.400' : 'gray.200',
Platform.OS !== 'ios' ? 'gray.700' : 'gray.600'
)(props),
onTrackColor: mode(
Platform.OS !== 'ios' ? `${colorScheme}.300` : `${colorScheme}.500`,
Platform.OS !== 'ios' ? `${colorScheme}.700` : `${colorScheme}.500`
)(props),
onThumbColor: mode(
Platform.OS !== 'ios' ? `${colorScheme}.600` : 'white',
Platform.OS !== 'ios' ? `${colorScheme}.500` : 'white'
)(props),
offThumbColor: mode(
Platform.OS !== 'ios' ? 'gray.100' : 'white',
Platform.OS !== 'ios' ? 'gray.200' : 'white'
)(props), </s> remove const inValidPropFactors = {
borderWidth: 1,
borderRadius: 16,
borderColor: borderColorInvalid,
};
</s> add </s> remove
const borderColorInvalid = useToken('colors', 'danger.600');
</s> add </s> remove const computedStyle: ViewStyle = StyleSheet.flatten([
themeStyle,
style,
isInvalid ? inValidPropFactors : {},
]);
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e4d5832ff553fc41104295e0e7639a184e1c9988 | src/theme/components/switch.ts |
_disabled: {
opacity: 0.4,
},
_invalid: {
borderWidth: 1,
borderRadius: 16,
borderColor: 'danger.600',
},
offTrackColor: mode(
Platform.OS !== 'ios' ? 'gray.400' : 'gray.200',
Platform.OS !== 'ios' ? 'gray.700' : 'gray.600'
)(props),
onTrackColor: mode(
Platform.OS !== 'ios' ? `${colorScheme}.300` : `${colorScheme}.500`,
Platform.OS !== 'ios' ? `${colorScheme}.700` : `${colorScheme}.500`
)(props),
onThumbColor: mode(
Platform.OS !== 'ios' ? `${colorScheme}.600` : 'white',
Platform.OS !== 'ios' ? `${colorScheme}.500` : 'white'
)(props),
offThumbColor: mode(
Platform.OS !== 'ios' ? 'gray.100' : 'white',
Platform.OS !== 'ios' ? 'gray.200' : 'white'
)(props), | <mask> const { onTrackColor, offTrackColor, onThumbColor, offThumbColor } = props;
<mask> const colorScheme = getColorScheme(props);
<mask>
<mask> return {
<mask> offTrackColor:
<mask> offTrackColor ??
<mask> mode(
<mask> Platform.OS !== 'ios' ? 'gray.400' : 'gray.200',
<mask> Platform.OS !== 'ios' ? 'gray.700' : 'gray.600'
<mask> )(props),
<mask> onTrackColor:
<mask> onTrackColor ??
<mask> mode(
<mask> Platform.OS !== 'ios' ? `${colorScheme}.300` : `${colorScheme}.500`,
<mask> Platform.OS !== 'ios' ? `${colorScheme}.700` : `${colorScheme}.500`
<mask> )(props),
<mask> onThumbColor:
<mask> onThumbColor ??
<mask> mode(
<mask> Platform.OS !== 'ios' ? `${colorScheme}.600` : 'white',
<mask> Platform.OS !== 'ios' ? `${colorScheme}.500` : 'white'
<mask> )(props),
<mask> offThumbColor:
<mask> offThumbColor ??
<mask> mode(
<mask> Platform.OS !== 'ios' ? 'gray.100' : 'white',
<mask> Platform.OS !== 'ios' ? 'gray.200' : 'white'
<mask> )(props),
<mask> };
<mask> };
<mask>
<mask> const sizes = {
<mask> sm: {
</s> fix: switch toggling issue with value </s> remove
</s> add //TODO: Use of Platform can be removed </s> remove const { onTrackColor, offTrackColor, onThumbColor, offThumbColor } = props;
</s> add </s> remove const inValidPropFactors = {
borderWidth: 1,
borderRadius: 16,
borderColor: borderColorInvalid,
};
</s> add </s> remove
const borderColorInvalid = useToken('colors', 'danger.600');
</s> add </s> remove const computedStyle: ViewStyle = StyleSheet.flatten([
themeStyle,
style,
isInvalid ? inValidPropFactors : {},
]);
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e4d5832ff553fc41104295e0e7639a184e1c9988 | src/theme/components/switch.ts |
.*/node_modules | <mask> [ignore]
<mask>
<mask> # We fork some components by platform.
<mask> .*/*[.]android.js
<mask>
</s> Included jest for travis check </s> remove "transpile": "npm run compile && cp src/basic/Icon/NBIcons.json dist/src/basic/Icon",
</s> add "transpile": "npm run compile && cp src/basic/Icon/NBIcons.json dist/src/basic/Icon && rm -rf dist/__tests__ && npm run test",
"test": "jest", </s> remove 0.44.0
</s> add 0.47.0 | [
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e56f2dbae6fd85587826ba97efccc6307341d9db | .flowconfig |
0.47.0 | <mask>
<mask> unsafe.enable_getters_and_setters=true
<mask>
<mask> [version]
<mask> 0.44.0
</s> Included jest for travis check </s> remove "transpile": "npm run compile && cp src/basic/Icon/NBIcons.json dist/src/basic/Icon",
</s> add "transpile": "npm run compile && cp src/basic/Icon/NBIcons.json dist/src/basic/Icon && rm -rf dist/__tests__ && npm run test",
"test": "jest", | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/GeekyAnts/NativeBase/commit/e56f2dbae6fd85587826ba97efccc6307341d9db | .flowconfig |
"transpile": "npm run compile && cp src/basic/Icon/NBIcons.json dist/src/basic/Icon && rm -rf dist/__tests__ && npm run test",
"test": "jest", | <mask> "rnpm"
<mask> ],
<mask> "scripts": {
<mask> "compile": "rm -rf dist/* && babel . --out-dir dist --ignore node_modules,dist --source-maps ",
<mask> "transpile": "npm run compile && cp src/basic/Icon/NBIcons.json dist/src/basic/Icon",
<mask> "prepublish": "npm run transpile",
<mask> "postinstall": "node addEjectScript.js",
<mask> "flow": "flow"
<mask> },
<mask> "jest": {
</s> Included jest for travis check </s> remove 0.44.0
</s> add 0.47.0 | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e56f2dbae6fd85587826ba97efccc6307341d9db | package.json |
<mask> const [isInvalid, setIsInvalid] = React.useState(false);
<mask> return (
<mask> <Stack space={4} w="90%">
<mask> <TextField
<mask> bg="gray.300"
<mask> variant="underlined"
<mask> isInvalid={isInvalid}
<mask> helperText="Sample helper text"
<mask> errorMessage="Sample error message"
<mask> placeholder="Default TextField"
</s> fix: radio disable fix, ref and example fix </s> remove import { Radio, Icon } from 'native-base';
</s> add import { Radio } from 'native-base'; </s> remove <Radio colorScheme="red" value="1" my={1}>
red
</s> add <Radio colorScheme="emerald" value="1" my={1}>
emerald </s> remove Group?: ICheckboxGroupProps;
</s> add </s> remove "@react-native-aria/radio": "^0.2.2",
</s> add "@react-native-aria/radio": "^0.2.4", | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e5d604c51e25980f5e4821ccaafaedf5f4afd925 | example/storybook/stories/components/composites/TextField/WithIcon.tsx |
|
<Radio colorScheme="emerald" value="1" my={1}>
emerald | <mask>
<mask> export default function () {
<mask> return (
<mask> <Radio.Group defaultValue="1" name="exampleGroup">
<mask> <Radio colorScheme="red" value="1" my={1}>
<mask> red
<mask> </Radio>
<mask> <Radio colorScheme="dark" value="2" my={1}>
<mask> dark
<mask> </Radio>
<mask> <Radio colorScheme="success" value="3" my={1}>
</s> fix: radio disable fix, ref and example fix </s> remove <Radio colorScheme="dark" value="2" my={1}>
dark
</s> add <Radio colorScheme="secondary" value="2" my={1}>
secondary </s> remove import { Radio, Icon } from 'native-base';
</s> add import { Radio } from 'native-base'; </s> remove <Radio colorScheme="success" value="3" my={1}>
success
</s> add <Radio colorScheme="warning" value="3" my={1}>
warning </s> remove bg="gray.300"
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e5d604c51e25980f5e4821ccaafaedf5f4afd925 | example/storybook/stories/components/primitives/Radio/customeColor.tsx |
<Radio colorScheme="secondary" value="2" my={1}>
secondary | <mask> <Radio.Group defaultValue="1" name="exampleGroup">
<mask> <Radio colorScheme="red" value="1" my={1}>
<mask> red
<mask> </Radio>
<mask> <Radio colorScheme="dark" value="2" my={1}>
<mask> dark
<mask> </Radio>
<mask> <Radio colorScheme="success" value="3" my={1}>
<mask> success
<mask> </Radio>
<mask> </Radio.Group>
</s> fix: radio disable fix, ref and example fix </s> remove <Radio colorScheme="red" value="1" my={1}>
red
</s> add <Radio colorScheme="emerald" value="1" my={1}>
emerald </s> remove <Radio colorScheme="success" value="3" my={1}>
success
</s> add <Radio colorScheme="warning" value="3" my={1}>
warning </s> remove <Radio
colorScheme="success"
icon={
<Icon name="bullseye" type="MaterialCommunityIcons" opacity={0} />
}
ref={myRef}
value="2"
my={1}
>
</s> add <Radio colorScheme="success" ref={myRef} value="2" my={1}> </s> remove <Radio
colorScheme="success"
icon={
<Icon name="bullseye" type="MaterialCommunityIcons" opacity={0} />
}
value="1"
my={1}
>
</s> add <Radio colorScheme="success" value="1" my={1}> | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e5d604c51e25980f5e4821ccaafaedf5f4afd925 | example/storybook/stories/components/primitives/Radio/customeColor.tsx |
<Radio colorScheme="warning" value="3" my={1}>
warning | <mask> </Radio>
<mask> <Radio colorScheme="dark" value="2" my={1}>
<mask> dark
<mask> </Radio>
<mask> <Radio colorScheme="success" value="3" my={1}>
<mask> success
<mask> </Radio>
<mask> </Radio.Group>
<mask> );
<mask> }
</s> fix: radio disable fix, ref and example fix </s> remove <Radio colorScheme="dark" value="2" my={1}>
dark
</s> add <Radio colorScheme="secondary" value="2" my={1}>
secondary </s> remove <Radio
colorScheme="success"
icon={
<Icon name="bullseye" type="MaterialCommunityIcons" opacity={0} />
}
ref={myRef}
value="2"
my={1}
>
</s> add <Radio colorScheme="success" ref={myRef} value="2" my={1}> </s> remove <Radio colorScheme="red" value="1" my={1}>
red
</s> add <Radio colorScheme="emerald" value="1" my={1}>
emerald </s> remove Group?: ICheckboxGroupProps;
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e5d604c51e25980f5e4821ccaafaedf5f4afd925 | example/storybook/stories/components/primitives/Radio/customeColor.tsx |
import { Radio } from 'native-base'; | <mask> import React from 'react';
<mask> import { Radio, Icon } from 'native-base';
<mask>
<mask> export default function () {
<mask> const myRef: any = React.useRef({});
<mask>
<mask> return (
</s> fix: radio disable fix, ref and example fix </s> remove <Radio colorScheme="red" value="1" my={1}>
red
</s> add <Radio colorScheme="emerald" value="1" my={1}>
emerald </s> remove bg="gray.300"
</s> add </s> remove Group?: ICheckboxGroupProps;
</s> add </s> remove "@react-native-aria/radio": "^0.2.2",
</s> add "@react-native-aria/radio": "^0.2.4", | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e5d604c51e25980f5e4821ccaafaedf5f4afd925 | example/storybook/stories/components/primitives/Radio/withRef.tsx |
<Radio colorScheme="success" value="1" my={1}> | <mask> backgroundColor: '#fa000050',
<mask> });
<mask> }}
<mask> >
<mask> <Radio
<mask> colorScheme="success"
<mask> icon={
<mask> <Icon name="bullseye" type="MaterialCommunityIcons" opacity={0} />
<mask> }
<mask> value="1"
<mask> my={1}
<mask> >
<mask> Wrong
<mask> </Radio>
<mask> <Radio
<mask> colorScheme="success"
<mask> icon={
</s> fix: radio disable fix, ref and example fix </s> remove <Radio
colorScheme="success"
icon={
<Icon name="bullseye" type="MaterialCommunityIcons" opacity={0} />
}
ref={myRef}
value="2"
my={1}
>
</s> add <Radio colorScheme="success" ref={myRef} value="2" my={1}> </s> remove <Radio colorScheme="red" value="1" my={1}>
red
</s> add <Radio colorScheme="emerald" value="1" my={1}>
emerald </s> remove <Radio colorScheme="dark" value="2" my={1}>
dark
</s> add <Radio colorScheme="secondary" value="2" my={1}>
secondary </s> remove Group?: ICheckboxGroupProps;
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e5d604c51e25980f5e4821ccaafaedf5f4afd925 | example/storybook/stories/components/primitives/Radio/withRef.tsx |
<Radio colorScheme="success" ref={myRef} value="2" my={1}> | <mask> my={1}
<mask> >
<mask> Wrong
<mask> </Radio>
<mask> <Radio
<mask> colorScheme="success"
<mask> icon={
<mask> <Icon name="bullseye" type="MaterialCommunityIcons" opacity={0} />
<mask> }
<mask> ref={myRef}
<mask> value="2"
<mask> my={1}
<mask> >
<mask> Right
<mask> </Radio>
<mask> </Radio.Group>
<mask> );
<mask> }
</s> fix: radio disable fix, ref and example fix </s> remove <Radio
colorScheme="success"
icon={
<Icon name="bullseye" type="MaterialCommunityIcons" opacity={0} />
}
value="1"
my={1}
>
</s> add <Radio colorScheme="success" value="1" my={1}> </s> remove <Radio colorScheme="success" value="3" my={1}>
success
</s> add <Radio colorScheme="warning" value="3" my={1}>
warning </s> remove <Radio colorScheme="dark" value="2" my={1}>
dark
</s> add <Radio colorScheme="secondary" value="2" my={1}>
secondary </s> remove <Radio colorScheme="red" value="1" my={1}>
red
</s> add <Radio colorScheme="emerald" value="1" my={1}>
emerald | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e5d604c51e25980f5e4821ccaafaedf5f4afd925 | example/storybook/stories/components/primitives/Radio/withRef.tsx |
"@react-native-aria/radio": "^0.2.4", | <mask> "@react-native-aria/focus": "^0.2.4",
<mask> "@react-native-aria/interactions": "^0.2.2",
<mask> "@react-native-aria/listbox": "^0.2.4-alpha.0",
<mask> "@react-native-aria/overlays": "^0.2.9",
<mask> "@react-native-aria/radio": "^0.2.2",
<mask> "@react-native-aria/tabs": "^0.2.3",
<mask> "@react-native-aria/utils": "^0.2.5",
<mask> "@react-native-picker/picker": "1.14.0",
<mask> "@react-stately/combobox": "^3.0.0-alpha.1",
<mask> "@react-stately/radio": "^3.2.1",
</s> fix: radio disable fix, ref and example fix </s> remove Group?: ICheckboxGroupProps;
</s> add </s> remove <Radio
colorScheme="success"
icon={
<Icon name="bullseye" type="MaterialCommunityIcons" opacity={0} />
}
ref={myRef}
value="2"
my={1}
>
</s> add <Radio colorScheme="success" ref={myRef} value="2" my={1}> </s> remove <Radio
colorScheme="success"
icon={
<Icon name="bullseye" type="MaterialCommunityIcons" opacity={0} />
}
value="1"
my={1}
>
</s> add <Radio colorScheme="success" value="1" my={1}> </s> remove import { Radio, Icon } from 'native-base';
</s> add import { Radio } from 'native-base'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e5d604c51e25980f5e4821ccaafaedf5f4afd925 | package.json |
<mask>
<mask> export type ICheckboxValue = string;
<mask>
<mask> export type ICheckboxProps = IBoxProps & {
<mask> Group?: ICheckboxGroupProps;
<mask> id?: string;
<mask> name?: string;
<mask> value: ICheckboxValue;
<mask> colorScheme?: string | 'default';
<mask> defaultIsChecked?: boolean;
</s> fix: radio disable fix, ref and example fix </s> remove import { Radio, Icon } from 'native-base';
</s> add import { Radio } from 'native-base'; </s> remove <Radio colorScheme="red" value="1" my={1}>
red
</s> add <Radio colorScheme="emerald" value="1" my={1}>
emerald </s> remove bg="gray.300"
</s> add </s> remove "@react-native-aria/radio": "^0.2.2",
</s> add "@react-native-aria/radio": "^0.2.4", | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e5d604c51e25980f5e4821ccaafaedf5f4afd925 | src/components/primitives/Checkbox/types.tsx |
|
console.log(inputProps);
| <mask> const { disabled, checked } = inputProps;
<mask>
<mask> // only calling below function when icon exist.
<mask> const sizedIcon = () =>
<mask> //@ts-ignore
<mask> React.cloneElement(icon, {
<mask> size,
<mask> ..._icon,
</s> fix: radio disable fix, ref and example fix </s> remove import { Radio, Icon } from 'native-base';
</s> add import { Radio } from 'native-base'; </s> remove bg="gray.300"
</s> add </s> remove <Radio colorScheme="red" value="1" my={1}>
red
</s> add <Radio colorScheme="emerald" value="1" my={1}>
emerald </s> remove Group?: ICheckboxGroupProps;
</s> add </s> remove "@react-native-aria/radio": "^0.2.2",
</s> add "@react-native-aria/radio": "^0.2.4", | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e5d604c51e25980f5e4821ccaafaedf5f4afd925 | src/components/primitives/Radio/Radio.tsx |
<mask> /**
<mask> * The theme prop can be applied to any component of NativeBase.
<mask> */
<mask> refreshing?: boolean;
<mask> refreshControl?: object;
<mask> theme?: Object;
<mask> padder?: boolean;
<mask> disableKBDismissScroll?: boolean;
<mask> enableResetScrollToCoords?: boolean;
<mask> contentOffset?: Object;
</s> remove Content interface conflicts with KeyboardAwareScrollViewProps (#2791)
Content interface extends KeyboardAwareScrollViewProps but defines some properties with Object and String. Updating interface to match correctly. </s> remove keyboardShouldPersistTaps?: string;
keyboardDismissMode?: string;
</s> add </s> remove contentOffset?: Object;
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e63adfc41c3765fd06e33cbc7dc6dcad2d7a1494 | index.d.ts |
|
<mask> theme?: Object;
<mask> padder?: boolean;
<mask> disableKBDismissScroll?: boolean;
<mask> enableResetScrollToCoords?: boolean;
<mask> contentOffset?: Object;
<mask> scrollEnabled?: boolean;
<mask> style?: RnViewStyleProp | Array<RnViewStyleProp>;
<mask> contentContainerStyle?: RnViewStyleProp | Array<RnViewStyleProp>;
<mask> keyboardShouldPersistTaps?: string;
<mask> keyboardDismissMode?: string;
</s> remove Content interface conflicts with KeyboardAwareScrollViewProps (#2791)
Content interface extends KeyboardAwareScrollViewProps but defines some properties with Object and String. Updating interface to match correctly. </s> remove refreshControl?: object;
</s> add </s> remove keyboardShouldPersistTaps?: string;
keyboardDismissMode?: string;
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e63adfc41c3765fd06e33cbc7dc6dcad2d7a1494 | index.d.ts |
|
<mask> contentOffset?: Object;
<mask> scrollEnabled?: boolean;
<mask> style?: RnViewStyleProp | Array<RnViewStyleProp>;
<mask> contentContainerStyle?: RnViewStyleProp | Array<RnViewStyleProp>;
<mask> keyboardShouldPersistTaps?: string;
<mask> keyboardDismissMode?: string;
<mask> }
<mask> /**
<mask> * see Widget Button.js
<mask> */
<mask> interface Button extends ReactNative.TouchableOpacityProps, BsStyle, Testable {
</s> remove Content interface conflicts with KeyboardAwareScrollViewProps (#2791)
Content interface extends KeyboardAwareScrollViewProps but defines some properties with Object and String. Updating interface to match correctly. </s> remove refreshControl?: object;
</s> add </s> remove contentOffset?: Object;
</s> add | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e63adfc41c3765fd06e33cbc7dc6dcad2d7a1494 | index.d.ts |
|
action={<IconButton icon={<CloseIcon size={3} />} />} | <mask> 'variant',
<mask> ['left-accent', 'solid', 'subtle', 'top-accent'],
<mask> 'subtle'
<mask> )}
<mask> action={<IconButton icon={<CloseIcon size="xxs" />} />}
<mask> actionProps={{ alignSelf: 'center' }}
<mask> >
<mask> <Alert.Icon />
<mask> <Alert.Title>Error Alert</Alert.Title>
<mask> <Alert.Description>Description </Alert.Description>
</s> fix: alert theme and examples </s> remove _actionProps: { alignSelf: 'flex-end', ml: 'auto' },
</s> add _actionProps: { alignSelf: 'center', ml: 'auto' }, </s> remove // TODO: Refactor this and move alignSelf to Icon component.
return (
<Box alignSelf="center" ref={wrapperRef}>
{children || getIcon()}
</Box>
);
</s> add return <Box ref={wrapperRef}>{children || getIcon()}</Box>; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e63b8ecc106f9a930fe8846ddf4cd71aa064037a | example/storybook/stories/components/composites/Alert/knobEnabled.tsx |
return <Box ref={wrapperRef}>{children || getIcon()}</Box>; | <mask> return <InfoIcon color={iconColor} {...newProps} ref={ref} />;
<mask> }
<mask> };
<mask>
<mask> // TODO: Refactor this and move alignSelf to Icon component.
<mask> return (
<mask> <Box alignSelf="center" ref={wrapperRef}>
<mask> {children || getIcon()}
<mask> </Box>
<mask> );
<mask> };
<mask> export default memo(forwardRef(AlertIcon));
</s> fix: alert theme and examples </s> remove _actionProps: { alignSelf: 'flex-end', ml: 'auto' },
</s> add _actionProps: { alignSelf: 'center', ml: 'auto' }, </s> remove action={<IconButton icon={<CloseIcon size="xxs" />} />}
</s> add action={<IconButton icon={<CloseIcon size={3} />} />} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e63b8ecc106f9a930fe8846ddf4cd71aa064037a | src/components/composites/Alert/AlertIcon.tsx |
_actionProps: { alignSelf: 'center', ml: 'auto' }, | <mask> justifyContent: 'flex-start',
<mask> flexWrap: 'wrap',
<mask> p: 3,
<mask> borderRadius: 'md',
<mask> _actionProps: { alignSelf: 'flex-end', ml: 'auto' },
<mask> _text: {
<mask> fontSize: 'sm',
<mask> lineHeight: 5,
<mask> color: 'gray.700',
<mask> },
</s> fix: alert theme and examples </s> remove action={<IconButton icon={<CloseIcon size="xxs" />} />}
</s> add action={<IconButton icon={<CloseIcon size={3} />} />} </s> remove // TODO: Refactor this and move alignSelf to Icon component.
return (
<Box alignSelf="center" ref={wrapperRef}>
{children || getIcon()}
</Box>
);
</s> add return <Box ref={wrapperRef}>{children || getIcon()}</Box>; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e63b8ecc106f9a930fe8846ddf4cd71aa064037a | src/theme/components/alert.ts |
InputLeftElement={InputLeftElement}
InputRightElement={InputRightElement}
leftElement={leftElement}
rightElement={rightElement} | <mask> {InputLeftElement || leftElement
<mask> ? InputLeftElement || leftElement
<mask> : null}
<mask> <InputBase
<mask> inputProps={inputProps}
<mask> bg="transparent"
<mask> {...baseInputProps}
<mask> flex={1}
<mask> disableFocusHandling
<mask> ref={ref}
</s> fix: fixed shadow issue on Input (#4605) </s> remove {...resolvedProps}
</s> add {...(passUnresolvedProps ? props : resolvedProps)} | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e67c54ab1e99237195793c9b1c8749212659a200 | src/components/primitives/Input/Input.tsx |
InputLeftElement,
InputRightElement,
leftElement,
rightElement, | <mask> inputProps,
<mask> wrapperRef,
<mask> isHovered: isHoveredProp,
<mask> isFocused: isFocusedProp,
<mask> ...props
<mask> }: IInputProps & {
<mask> disableFocusHandling?: boolean;
<mask> inputProps: any;
</s> fix: fixed shadow issue on Input (#4605) </s> remove {...resolvedProps}
</s> add {...(passUnresolvedProps ? props : resolvedProps)} | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e67c54ab1e99237195793c9b1c8749212659a200 | src/components/primitives/Input/InputBase.tsx |
let passUnresolvedProps;
if (InputLeftElement || InputRightElement || leftElement || rightElement) {
passUnresolvedProps = true;
}
| <mask> inputProps: any;
<mask> },
<mask> ref: any
<mask> ) => {
<mask> const [isFocused, setIsFocused] = React.useState(false);
<mask> const handleFocus = (focusState: boolean, callback: any) => {
<mask> !disableFocusHandling && setIsFocused(focusState);
<mask> callback();
<mask> };
<mask>
</s> fix: fixed shadow issue on Input (#4605) </s> remove {...resolvedProps}
</s> add {...(passUnresolvedProps ? props : resolvedProps)} | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e67c54ab1e99237195793c9b1c8749212659a200 | src/components/primitives/Input/InputBase.tsx |
{...(passUnresolvedProps ? props : resolvedProps)} | <mask> accessible
<mask> accessibilityLabel={ariaLabel || accessibilityLabel}
<mask> editable={isDisabled || isReadOnly ? false : true}
<mask> w={isFullWidth ? '100%' : undefined}
<mask> {...resolvedProps}
<mask> placeholderTextColor={resolvedPlaceholderTextColor}
<mask> selectionColor={resolvedSelectionColor}
<mask> underlineColorAndroid={resolvedUnderlineColorAndroid}
<mask> onKeyPress={(e: any) => {
<mask> e.persist();
</s> fix: fixed shadow issue on Input (#4605) | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e67c54ab1e99237195793c9b1c8749212659a200 | src/components/primitives/Input/InputBase.tsx |
import { Keyboard, Platform, Animated, ViewPropTypes } from 'react-native'; | <mask> /* eslint-disable class-methods-use-this */
<mask> import React, { Component } from 'react';
<mask> import PropTypes from 'prop-types';
<mask> import { Platform, Animated, ViewPropTypes } from 'react-native';
<mask> import { connectStyle } from 'native-base-shoutem-theme';
<mask>
<mask> import mapPropsToStyleNames from '../utils/mapPropsToStyleNames';
<mask> import { PLATFORM } from '../theme/variables/commonColor';
<mask>
</s> Fix #2844 - IOS (#2867) </s> remove modalVisible: false,
fadeAnim: new Animated.Value(0)
</s> add fadeAnim: new Animated.Value(0),
keyboardHeight: 0,
isKeyboardVisible: false,
modalVisible: false | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e8b8584d4fd69a3c996f9ba5dc38868ba047f41b | src/basic/ToastContainer.js |
fadeAnim: new Animated.Value(0),
keyboardHeight: 0,
isKeyboardVisible: false,
modalVisible: false | <mask> }
<mask> constructor(props) {
<mask> super(props);
<mask> this.state = {
<mask> modalVisible: false,
<mask> fadeAnim: new Animated.Value(0)
<mask> };
<mask> }
<mask> getToastStyle() {
<mask> return {
<mask> position: POSITION.ABSOLUTE,
</s> Fix #2844 - IOS (#2867) </s> remove import { Platform, Animated, ViewPropTypes } from 'react-native';
</s> add import { Keyboard, Platform, Animated, ViewPropTypes } from 'react-native'; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e8b8584d4fd69a3c996f9ba5dc38868ba047f41b | src/basic/ToastContainer.js |
this.keyboardDidHide = this.keyboardDidHide.bind(this);
this.keyboardDidShow = this.keyboardDidShow.bind(this);
}
componentDidMount() {
Keyboard.addListener('keyboardDidShow', this.keyboardDidShow);
Keyboard.addListener('keyboardDidHide', this.keyboardDidHide); | <mask> keyboardHeight: 0,
<mask> isKeyboardVisible: false,
<mask> modalVisible: false
<mask> };
<mask> }
<mask>
<mask> getToastStyle() {
<mask> return {
<mask> position: POSITION.ABSOLUTE,
<mask> opacity: this.state.fadeAnim,
</s> Fix #2844 - IOS (#2867) </s> remove modalVisible: false,
fadeAnim: new Animated.Value(0)
</s> add fadeAnim: new Animated.Value(0),
keyboardHeight: 0,
isKeyboardVisible: false,
modalVisible: false </s> remove import { Platform, Animated, ViewPropTypes } from 'react-native';
</s> add import { Keyboard, Platform, Animated, ViewPropTypes } from 'react-native'; | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e8b8584d4fd69a3c996f9ba5dc38868ba047f41b | src/basic/ToastContainer.js |
if (this.state.isKeyboardVisible) {
return this.state.keyboardHeight;
} | <mask> getTop() {
<mask> if (Platform.OS === PLATFORM.IOS) {
<mask> return 30;
<mask> }
<mask> return 0;
<mask> }
<mask>
<mask> getButtonText(buttonText) {
</s> Fix #2844 - IOS (#2867) </s> remove modalVisible: false,
fadeAnim: new Animated.Value(0)
</s> add fadeAnim: new Animated.Value(0),
keyboardHeight: 0,
isKeyboardVisible: false,
modalVisible: false </s> remove import { Platform, Animated, ViewPropTypes } from 'react-native';
</s> add import { Keyboard, Platform, Animated, ViewPropTypes } from 'react-native'; | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e8b8584d4fd69a3c996f9ba5dc38868ba047f41b | src/basic/ToastContainer.js |
keyboardDidHide() {
this.setState({
keyboardHeight: 0,
isKeyboardVisible: false
});
}
keyboardDidShow(e) {
this.setState({
keyboardHeight: e.endCoordinates.height,
isKeyboardVisible: true
});
}
| <mask> getModalState() {
<mask> return this.state.modalVisible;
<mask> }
<mask> showToast({ config }) {
<mask> this.setState({
<mask> modalVisible: true,
<mask> text: config.text,
</s> Fix #2844 - IOS (#2867) </s> remove modalVisible: false,
fadeAnim: new Animated.Value(0)
</s> add fadeAnim: new Animated.Value(0),
keyboardHeight: 0,
isKeyboardVisible: false,
modalVisible: false </s> remove import { Platform, Animated, ViewPropTypes } from 'react-native';
</s> add import { Keyboard, Platform, Animated, ViewPropTypes } from 'react-native'; | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e8b8584d4fd69a3c996f9ba5dc38868ba047f41b | src/basic/ToastContainer.js |
accessibilityLabel="this is a simple form" | <mask> return (
<mask> <>
<mask> <Modal
<mask> isOpen={modalVisible}
<mask> onClose={setModalVisible}
<mask> overlayVisible={true}
<mask> >
<mask> <Modal.Content>
<mask> <Modal.CloseButton />
</s> feat: add accessibility support in overlays </s> remove {...newProps}
</s> add {...restProps} </s> remove accessibilityViewIsModal={isOverlayModal}
</s> add accessibilityViewIsModal={isModal} </s> remove const isOverlayModal = overlayItem && overlayConfig.accessibilityViewIsModal;
</s> add const isOverlayOpen = !!overlayItem;
const isModal = isOverlayOpen && overlayConfig.accessibilityViewIsModal; | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9188807a23d9023cc7deb9c2107aecf3bf53c11 | example/storybook/stories/components/composites/Modal/Basic.tsx |
import { themeTools } from '../../../theme'; | <mask> import { Box, View } from '../../primitives';
<mask> import type { IModalProps, IModalSemiProps } from './types';
<mask> import { default as ModalOverlay } from './ModalOverlay';
<mask> import { ModalContext } from './Context';
<mask>
<mask> const ModalWeb = ({
<mask> initialFocusRef,
<mask> finalFocusRef,
</s> feat: add accessibility support in overlays </s> remove [overlayConfig, overlayItem]
</s> add [overlayConfig, overlayItem, handleClose] </s> remove const isOverlayModal = overlayItem && overlayConfig.accessibilityViewIsModal;
</s> add const isOverlayOpen = !!overlayItem;
const isModal = isOverlayOpen && overlayConfig.accessibilityViewIsModal; </s> remove const handleClose = () => {
</s> add const handleClose = React.useCallback(() => { </s> remove };
</s> add }, [overlayConfig, setOverlayItem]); | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9188807a23d9023cc7deb9c2107aecf3bf53c11 | src/components/composites/Modal/Modal.tsx |
// Accessibility label will be added to the overlay wrapper or else VoiceOver announces it twice
let [accessibilityProps, restProps] = themeTools.extractInObject(newProps, [
'accessibilityLabel',
]);
| <mask> contentSize: contentSize,
<mask> };
<mask> const modalChildren = (
<mask> <Box
<mask> {...restProps}
<mask> justifyContent={justifyContent ?? 'center'}
<mask> alignItems={alignItems ?? 'center'}
</s> feat: add accessibility support in overlays </s> remove {...newProps}
</s> add {...restProps} </s> remove const isOverlayModal = overlayItem && overlayConfig.accessibilityViewIsModal;
</s> add const isOverlayOpen = !!overlayItem;
const isModal = isOverlayOpen && overlayConfig.accessibilityViewIsModal; </s> remove isKeyboardDismissable: true,
</s> add isKeyboardDismissable: props.isKeyboardDismissable ?? true, </s> remove const handleClose = () => {
</s> add const handleClose = React.useCallback(() => { | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9188807a23d9023cc7deb9c2107aecf3bf53c11 | src/components/composites/Modal/Modal.tsx |
{...restProps} | <mask> contentSize: contentSize,
<mask> };
<mask> const modalChildren = (
<mask> <Box
<mask> {...newProps}
<mask> justifyContent={justifyContent ?? 'center'}
<mask> alignItems={alignItems ?? 'center'}
<mask> >
<mask> {newProps.closeOnOverlayClick === false ? <Box /> : <ModalOverlay />}
<mask> {children}
</s> feat: add accessibility support in overlays </s> remove isKeyboardDismissable: true,
</s> add isKeyboardDismissable: props.isKeyboardDismissable ?? true, </s> remove const isOverlayModal = overlayItem && overlayConfig.accessibilityViewIsModal;
</s> add const isOverlayOpen = !!overlayItem;
const isModal = isOverlayOpen && overlayConfig.accessibilityViewIsModal; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9188807a23d9023cc7deb9c2107aecf3bf53c11 | src/components/composites/Modal/Modal.tsx |
isKeyboardDismissable: props.isKeyboardDismissable ?? true, | <mask> </FocusScope>
<mask> </ModalContext.Provider>,
<mask> {
<mask> onClose: onClose,
<mask> isKeyboardDismissable: true,
<mask> accessibilityViewIsModal: true,
<mask> closeOnPress:
<mask> newProps.closeOnOverlayClick === false ? false : true,
<mask> backgroundColor: overlayColor ? overlayColor : undefined,
<mask> disableOverlay: overlayVisible === false ? true : false,
</s> feat: add accessibility support in overlays </s> remove {...newProps}
</s> add {...restProps} </s> remove accessibilityRole={isOverlayModal ? 'dialog' : undefined}
</s> add accessibilityRole={isModal ? 'dialog' : undefined} </s> remove };
</s> add }, [overlayConfig, setOverlayItem]); </s> remove const handleClose = () => {
</s> add const handleClose = React.useCallback(() => { | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9188807a23d9023cc7deb9c2107aecf3bf53c11 | src/components/composites/Modal/Modal.tsx |
accessibilityLabel: accessibilityProps.accessibilityLabel, | <mask> isKeyboardDismissable: props.isKeyboardDismissable ?? true,
<mask> accessibilityViewIsModal: true,
<mask> closeOnPress:
<mask> newProps.closeOnOverlayClick === false ? false : true,
<mask> backgroundColor: overlayColor ? overlayColor : undefined,
<mask> disableOverlay: overlayVisible === false ? true : false,
</s> feat: add accessibility support in overlays </s> remove isKeyboardDismissable: true,
</s> add isKeyboardDismissable: props.isKeyboardDismissable ?? true, </s> remove {...newProps}
</s> add {...restProps} </s> remove accessibilityRole={isOverlayModal ? 'dialog' : undefined}
</s> add accessibilityRole={isModal ? 'dialog' : undefined} </s> remove accessibilityModal={isOverlayModal}
</s> add accessibilityModal={isModal} | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9188807a23d9023cc7deb9c2107aecf3bf53c11 | src/components/composites/Modal/Modal.tsx |
/*
Specifies if a modal can be closed by pressing Escape
*/
isKeyboardDismissable?: boolean;
| <mask> id?: any;
<mask> motionPreset?: 'slide' | 'fade' | 'none';
<mask> closeOnOverlayClick?: boolean;
<mask> overlayVisible?: boolean;
<mask> overlayColor?: string;
<mask> ref?: React.Ref<any>;
<mask> };
<mask> export type IModalContextType = {
</s> feat: add accessibility support in overlays </s> remove const handleClose = () => {
</s> add const handleClose = React.useCallback(() => { </s> remove [overlayConfig, overlayItem]
</s> add [overlayConfig, overlayItem, handleClose] </s> remove };
</s> add }, [overlayConfig, setOverlayItem]); | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9188807a23d9023cc7deb9c2107aecf3bf53c11 | src/components/composites/Modal/types.ts |
const handleClose = React.useCallback(() => { | <mask> const provideWindowSize = (layoutSize: any) => {
<mask> setWindowSize(layoutSize.height);
<mask> };
<mask>
<mask> const handleClose = () => {
<mask> setOverlayItem(null);
<mask> overlayConfig.onClose ? overlayConfig.onClose(false) : null;
<mask> };
<mask>
<mask> useEffect(() => {
</s> feat: add accessibility support in overlays </s> remove };
</s> add }, [overlayConfig, setOverlayItem]); </s> remove [overlayConfig, overlayItem]
</s> add [overlayConfig, overlayItem, handleClose] </s> remove const isOverlayModal = overlayItem && overlayConfig.accessibilityViewIsModal;
</s> add const isOverlayOpen = !!overlayItem;
const isModal = isOverlayOpen && overlayConfig.accessibilityViewIsModal; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9188807a23d9023cc7deb9c2107aecf3bf53c11 | src/core/Overlay/Wrapper.tsx |
}, [overlayConfig, setOverlayItem]); | <mask>
<mask> const handleClose = () => {
<mask> setOverlayItem(null);
<mask> overlayConfig.onClose ? overlayConfig.onClose(false) : null;
<mask> };
<mask>
<mask> useEffect(() => {
<mask> if (isSlideAnimation) {
<mask> if (overlayItem && overlayItemHeight) {
<mask> setTimeout(() => {
</s> feat: add accessibility support in overlays </s> remove const handleClose = () => {
</s> add const handleClose = React.useCallback(() => { </s> remove [overlayConfig, overlayItem]
</s> add [overlayConfig, overlayItem, handleClose] | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9188807a23d9023cc7deb9c2107aecf3bf53c11 | src/core/Overlay/Wrapper.tsx |
[overlayConfig, overlayItem, handleClose] | <mask> document.removeEventListener('keydown', escapeKeyListener);
<mask> }
<mask> };
<mask> },
<mask> [overlayConfig, overlayItem]
<mask> );
<mask>
<mask> const placeOverlayItem = () => {
<mask> if (readyToAnimate && overlayItem) {
<mask> const webStyle = {
</s> feat: add accessibility support in overlays </s> remove };
</s> add }, [overlayConfig, setOverlayItem]); </s> remove const handleClose = () => {
</s> add const handleClose = React.useCallback(() => { </s> remove const isOverlayModal = overlayItem && overlayConfig.accessibilityViewIsModal;
</s> add const isOverlayOpen = !!overlayItem;
const isModal = isOverlayOpen && overlayConfig.accessibilityViewIsModal; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9188807a23d9023cc7deb9c2107aecf3bf53c11 | src/core/Overlay/Wrapper.tsx |
const isOverlayOpen = !!overlayItem;
const isModal = isOverlayOpen && overlayConfig.accessibilityViewIsModal; | <mask> }
<mask> };
<mask>
<mask> overlayItem ? fadeIn() : fadeOut();
<mask> const isOverlayModal = overlayItem && overlayConfig.accessibilityViewIsModal;
<mask>
<mask> return (
<mask> <Animated.View
<mask> // iOS
<mask> accessibilityViewIsModal={isOverlayModal}
</s> feat: add accessibility support in overlays </s> remove accessibilityViewIsModal={isOverlayModal}
</s> add accessibilityViewIsModal={isModal} </s> remove accessibilityRole={isOverlayModal ? 'dialog' : undefined}
</s> add accessibilityRole={isModal ? 'dialog' : undefined} </s> remove aria-modal={isOverlayModal}
</s> add aria-modal={isModal}
// To support Z gesture escape on iOS </s> remove accessibilityModal={isOverlayModal}
</s> add accessibilityModal={isModal} | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9188807a23d9023cc7deb9c2107aecf3bf53c11 | src/core/Overlay/Wrapper.tsx |
accessibilityLabel={
isOverlayOpen ? overlayConfig.accessibilityLabel : undefined
} | <mask> return (
<mask> <Animated.View
<mask> // iOS
<mask> accessibilityViewIsModal={isModal}
<mask> // Web
<mask> aria-modal={isModal}
<mask> // To support Z gesture escape on iOS
<mask> onAccessibilityEscape={handleClose}
</s> feat: add accessibility support in overlays </s> remove aria-modal={isOverlayModal}
</s> add aria-modal={isModal}
// To support Z gesture escape on iOS </s> remove accessibilityViewIsModal={isOverlayModal}
</s> add accessibilityViewIsModal={isModal} </s> remove const isOverlayModal = overlayItem && overlayConfig.accessibilityViewIsModal;
</s> add const isOverlayOpen = !!overlayItem;
const isModal = isOverlayOpen && overlayConfig.accessibilityViewIsModal; </s> remove accessibilityModal={isOverlayModal}
</s> add accessibilityModal={isModal} | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9188807a23d9023cc7deb9c2107aecf3bf53c11 | src/core/Overlay/Wrapper.tsx |
accessibilityViewIsModal={isModal} | <mask>
<mask> return (
<mask> <Animated.View
<mask> // iOS
<mask> accessibilityViewIsModal={isOverlayModal}
<mask> // Web
<mask> aria-modal={isOverlayModal}
<mask> onAccessibilityEscape={handleClose}
<mask> // Web. aria-* will be deprecated in future versions
<mask> // @ts-ignore
</s> feat: add accessibility support in overlays </s> remove aria-modal={isOverlayModal}
</s> add aria-modal={isModal}
// To support Z gesture escape on iOS </s> remove accessibilityModal={isOverlayModal}
</s> add accessibilityModal={isModal} </s> remove accessibilityRole={isOverlayModal ? 'dialog' : undefined}
</s> add accessibilityRole={isModal ? 'dialog' : undefined} </s> remove const isOverlayModal = overlayItem && overlayConfig.accessibilityViewIsModal;
</s> add const isOverlayOpen = !!overlayItem;
const isModal = isOverlayOpen && overlayConfig.accessibilityViewIsModal; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9188807a23d9023cc7deb9c2107aecf3bf53c11 | src/core/Overlay/Wrapper.tsx |
aria-modal={isModal}
// To support Z gesture escape on iOS | <mask> <Animated.View
<mask> // iOS
<mask> accessibilityViewIsModal={isOverlayModal}
<mask> // Web
<mask> aria-modal={isOverlayModal}
<mask> onAccessibilityEscape={handleClose}
<mask> // Web. aria-* will be deprecated in future versions
<mask> // @ts-ignore
<mask> accessibilityModal={isOverlayModal}
<mask> // @ts-ignore
</s> feat: add accessibility support in overlays </s> remove accessibilityViewIsModal={isOverlayModal}
</s> add accessibilityViewIsModal={isModal} </s> remove accessibilityModal={isOverlayModal}
</s> add accessibilityModal={isModal} </s> remove accessibilityRole={isOverlayModal ? 'dialog' : undefined}
</s> add accessibilityRole={isModal ? 'dialog' : undefined} </s> remove const isOverlayModal = overlayItem && overlayConfig.accessibilityViewIsModal;
</s> add const isOverlayOpen = !!overlayItem;
const isModal = isOverlayOpen && overlayConfig.accessibilityViewIsModal; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9188807a23d9023cc7deb9c2107aecf3bf53c11 | src/core/Overlay/Wrapper.tsx |
accessibilityModal={isModal} | <mask> aria-modal={isOverlayModal}
<mask> onAccessibilityEscape={handleClose}
<mask> // Web. aria-* will be deprecated in future versions
<mask> // @ts-ignore
<mask> accessibilityModal={isOverlayModal}
<mask> // @ts-ignore
<mask> accessibilityRole={isOverlayModal ? 'dialog' : undefined}
<mask> style={[overlayStyle.wrapper, { opacity: fadeValue }]}
<mask> pointerEvents={
<mask> overlayItem
</s> feat: add accessibility support in overlays </s> remove accessibilityRole={isOverlayModal ? 'dialog' : undefined}
</s> add accessibilityRole={isModal ? 'dialog' : undefined} </s> remove aria-modal={isOverlayModal}
</s> add aria-modal={isModal}
// To support Z gesture escape on iOS </s> remove accessibilityViewIsModal={isOverlayModal}
</s> add accessibilityViewIsModal={isModal} </s> remove const isOverlayModal = overlayItem && overlayConfig.accessibilityViewIsModal;
</s> add const isOverlayOpen = !!overlayItem;
const isModal = isOverlayOpen && overlayConfig.accessibilityViewIsModal; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9188807a23d9023cc7deb9c2107aecf3bf53c11 | src/core/Overlay/Wrapper.tsx |
accessibilityRole={isModal ? 'dialog' : undefined} | <mask> // Web. aria-* will be deprecated in future versions
<mask> // @ts-ignore
<mask> accessibilityModal={isOverlayModal}
<mask> // @ts-ignore
<mask> accessibilityRole={isOverlayModal ? 'dialog' : undefined}
<mask> style={[overlayStyle.wrapper, { opacity: fadeValue }]}
<mask> pointerEvents={
<mask> overlayItem
<mask> ? overlayConfig.disableOverlay
<mask> ? 'box-none'
</s> feat: add accessibility support in overlays </s> remove accessibilityModal={isOverlayModal}
</s> add accessibilityModal={isModal} </s> remove aria-modal={isOverlayModal}
</s> add aria-modal={isModal}
// To support Z gesture escape on iOS </s> remove accessibilityViewIsModal={isOverlayModal}
</s> add accessibilityViewIsModal={isModal} </s> remove const isOverlayModal = overlayItem && overlayConfig.accessibilityViewIsModal;
</s> add const isOverlayOpen = !!overlayItem;
const isModal = isOverlayOpen && overlayConfig.accessibilityViewIsModal; | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9188807a23d9023cc7deb9c2107aecf3bf53c11 | src/core/Overlay/Wrapper.tsx |
accessibilityLabel?: string; | <mask> motionPreset?: 'slide' | 'fade' | 'none';
<mask> onClose?: Function;
<mask> closeOnPress?: boolean;
<mask> isKeyboardDismissable?: boolean;
<mask> accessibilityViewIsModal?: boolean;
<mask> };
<mask>
<mask> export type IuseOverlayProps = () => {
</s> feat: add accessibility support in overlays </s> remove const handleClose = () => {
</s> add const handleClose = React.useCallback(() => { </s> remove };
</s> add }, [overlayConfig, setOverlayItem]); </s> remove [overlayConfig, overlayItem]
</s> add [overlayConfig, overlayItem, handleClose] | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9188807a23d9023cc7deb9c2107aecf3bf53c11 | src/core/Overlay/types.ts |
var _jsxFileName='__tests__/backward/Button.android.js';require('react-native'); | <mask> require('react-native');
<mask> var _reactTestRenderer=require('react-test-renderer');var _reactTestRenderer2=_interopRequireDefault(_reactTestRenderer);
<mask>
<mask> var _react=require('react');var _react2=_interopRequireDefault(_react);
<mask> var _Button=require('./../../src/backward/Widgets/Button');function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
<mask>
</s> Fix for setNativeProps issue #574 </s> remove require('react-native');
</s> add var _jsxFileName='__tests__/backward/Button.ios.js';require('react-native'); </s> remove require('react-native');
</s> add var _jsxFileName='__tests__/basic/Button.android.js';require('react-native'); </s> remove require('react-native');
</s> add var _jsxFileName='__tests__/basic/Button.ios.js';require('react-native'); </s> remove require('react-native');
</s> add var _jsxFileName='__tests__/basic/Header.android.js';require('react-native'); </s> remove require('react-native');
</s> add var _jsxFileName='__tests__/basic/Header.ios.js';require('react-native'); | [
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Button.android.js |
_react2.default.createElement(_Button.Button,{__source:{fileName:_jsxFileName,lineNumber:19}},'Test')). | <mask>
<mask>
<mask> it('renders regular button',function(){
<mask> var tree=_reactTestRenderer2.default.create(
<mask> _react2.default.createElement(_Button.Button,null,'Test')).
<mask>
<mask>
<mask> toJSON();
<mask> expect(tree).toMatchSnapshot();
<mask> });
</s> Fix for setNativeProps issue #574 </s> remove _react2.default.createElement(_Button.Button,null,'Test')).
</s> add _react2.default.createElement(_Button.Button,{__source:{fileName:_jsxFileName,lineNumber:19}},'Test')). </s> remove _react2.default.createElement(_Button.Button,null,'Test')).
</s> add _react2.default.createElement(_Button.Button,{__source:{fileName:_jsxFileName,lineNumber:19}},'Test')). </s> remove _react2.default.createElement(_Button.Button,null,'Test')).
</s> add _react2.default.createElement(_Button.Button,{__source:{fileName:_jsxFileName,lineNumber:19}},'Test')). </s> remove _react2.default.createElement(_Badge.Badge,null,'2')).
</s> add _react2.default.createElement(_Badge.Badge,{__source:{fileName:_jsxFileName,lineNumber:18}},'2')). </s> remove _react2.default.createElement(_Header.Header,null,
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:45}}, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Button.android.js |
var _jsxFileName='__tests__/backward/Button.ios.js';require('react-native'); | <mask> require('react-native');
<mask> var _reactTestRenderer=require('react-test-renderer');var _reactTestRenderer2=_interopRequireDefault(_reactTestRenderer);
<mask>
<mask> var _react=require('react');var _react2=_interopRequireDefault(_react);
<mask> var _Button=require('./../../src/backward/Widgets/Button');function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
<mask>
</s> Fix for setNativeProps issue #574 </s> remove require('react-native');
</s> add var _jsxFileName='__tests__/backward/Button.android.js';require('react-native'); </s> remove require('react-native');
</s> add var _jsxFileName='__tests__/basic/Button.android.js';require('react-native'); </s> remove require('react-native');
</s> add var _jsxFileName='__tests__/basic/Button.ios.js';require('react-native'); </s> remove require('react-native');
</s> add var _jsxFileName='__tests__/basic/Header.android.js';require('react-native'); </s> remove require('react-native');
</s> add var _jsxFileName='__tests__/basic/Header.ios.js';require('react-native'); | [
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Button.ios.js |
_react2.default.createElement(_Button.Button,{__source:{fileName:_jsxFileName,lineNumber:19}},'Test')). | <mask>
<mask>
<mask> it('renders regular button',function(){
<mask> var tree=_reactTestRenderer2.default.create(
<mask> _react2.default.createElement(_Button.Button,null,'Test')).
<mask>
<mask>
<mask> toJSON();
<mask> expect(tree).toMatchSnapshot();
<mask> });
</s> Fix for setNativeProps issue #574 | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Button.ios.js |
var _jsxFileName='__tests__/backward/Header.android.js';require('react-native'); | <mask> require('react-native');
<mask> var _react=require('react');var _react2=_interopRequireDefault(_react);
<mask> var _reactTestRenderer=require('react-test-renderer');var _reactTestRenderer2=_interopRequireDefault(_reactTestRenderer);
<mask> var _Header=require('./../../src/backward/Widgets/Header');
<mask> var _Button=require('./../../src/backward/Widgets/Button');
<mask> var _Icon=require('./../../src/backward/Widgets/Icon');
</s> Fix for setNativeProps issue #574 </s> remove require('react-native');
</s> add var _jsxFileName='__tests__/backward/Header.ios.js';require('react-native'); </s> remove require('react-native');
</s> add var _jsxFileName='__tests__/backward/Button.android.js';require('react-native'); </s> remove require('react-native');
</s> add var _jsxFileName='__tests__/backward/Button.ios.js';require('react-native'); </s> remove require('react-native');
</s> add var _jsxFileName='__tests__/basic/Button.android.js';require('react-native'); </s> remove require('react-native');
</s> add var _jsxFileName='__tests__/basic/Button.ios.js';require('react-native'); | [
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.android.js |
_react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:21}})). | <mask> jest.mock('ScrollView',function(){return'ScrollView';});
<mask>
<mask> it('renders correctly',function(){
<mask> var tree=_reactTestRenderer2.default.create(
<mask> _react2.default.createElement(_Header.Header,null)).
<mask> toJSON();
<mask> expect(tree).toMatchSnapshot();
<mask> });
<mask>
<mask> it('renders header with buttons',function(){
</s> Fix for setNativeProps issue #574 </s> remove _react2.default.createElement(_Header.Header,null)).
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:21}})). </s> remove _react2.default.createElement(_Header.Header,null)).
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:21}})). </s> remove _react2.default.createElement(_Header.Header,null)).
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:21}})). </s> remove _react2.default.createElement(_Header.Header,null,
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:45}}, </s> remove _react2.default.createElement(_Header.Header,null,
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:45}}, | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.android.js |
_react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:28}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:29}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:30}})), | <mask> });
<mask>
<mask> it('renders header with buttons',function(){
<mask> var tree=_reactTestRenderer2.default.create(
<mask> _react2.default.createElement(_Header.Header,null,
<mask> _react2.default.createElement(_Button.Button,{transparent:true},
<mask> _react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
<mask>
<mask>
<mask> _react2.default.createElement(_Title.Title,null,'Header'),
<mask>
<mask> _react2.default.createElement(_Button.Button,{transparent:true},
</s> Fix for setNativeProps issue #574 </s> remove _react2.default.createElement(_Header.Header,null,
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:28}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:29}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:30}})), </s> remove _react2.default.createElement(_Header.Header,null,
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:28}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:29}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:30}})), </s> remove _react2.default.createElement(_Header.Header,null,
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:28}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:29}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:30}})), </s> remove _react2.default.createElement(_Header.Header,null,
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:55}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:56}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:57}})), </s> remove _react2.default.createElement(_Header.Header,null,
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:55}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:56}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:57}})), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.android.js |
_react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:33}},'Header'), | <mask> _react2.default.createElement(_Button.Button,{transparent:true},
<mask> _react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
<mask>
<mask>
<mask> _react2.default.createElement(_Title.Title,null,'Header'),
<mask>
<mask> _react2.default.createElement(_Button.Button,{transparent:true},
<mask> _react2.default.createElement(_Icon.Icon,{name:'ios-menu'})))).
<mask>
<mask>
</s> Fix for setNativeProps issue #574 </s> remove _react2.default.createElement(_Title.Title,null,'Header'),
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:33}},'Header'), </s> remove _react2.default.createElement(_Title.Title,null,'Header'),
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:33}},'Header'), </s> remove _react2.default.createElement(_Title.Title,null,'Header'),
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:33}},'Header'), </s> remove _react2.default.createElement(_Title.Title,null,'Header'),
_react2.default.createElement(_Subtitle2.default,null,'Subtitle'),
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:60}},'Header'),
_react2.default.createElement(_Subtitle2.default,{__source:{fileName:_jsxFileName,lineNumber:61}},'Subtitle'), </s> remove _react2.default.createElement(_Title.Title,null,'Header'),
_react2.default.createElement(_Subtitle2.default,null,'Subtitle'),
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:60}},'Header'),
_react2.default.createElement(_Subtitle2.default,{__source:{fileName:_jsxFileName,lineNumber:61}},'Subtitle'), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.android.js |
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:35}},
_react2.default.createElement(_Icon.Icon,{name:'ios-menu',__source:{fileName:_jsxFileName,lineNumber:36}})))). | <mask>
<mask>
<mask> _react2.default.createElement(_Title.Title,null,'Header'),
<mask>
<mask> _react2.default.createElement(_Button.Button,{transparent:true},
<mask> _react2.default.createElement(_Icon.Icon,{name:'ios-menu'})))).
<mask>
<mask>
<mask> toJSON();
<mask> expect(tree).toMatchSnapshot();
<mask> });
</s> Fix for setNativeProps issue #574 </s> remove _react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-menu'})))).
</s> add _react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:35}},
_react2.default.createElement(_Icon.Icon,{name:'ios-menu',__source:{fileName:_jsxFileName,lineNumber:36}})))). </s> remove _react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-menu'})))).
</s> add _react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:35}},
_react2.default.createElement(_Icon.Icon,{name:'ios-menu',__source:{fileName:_jsxFileName,lineNumber:36}})))). </s> remove _react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-menu'})))).
</s> add _react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:35}},
_react2.default.createElement(_Icon.Icon,{name:'ios-menu',__source:{fileName:_jsxFileName,lineNumber:36}})))). </s> remove _react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-menu'})))).
</s> add _react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:63}},
_react2.default.createElement(_Icon.Icon,{name:'ios-menu',__source:{fileName:_jsxFileName,lineNumber:64}})))). </s> remove _react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-menu'})))).
</s> add _react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:63}},
_react2.default.createElement(_Icon.Icon,{name:'ios-menu',__source:{fileName:_jsxFileName,lineNumber:64}})))). | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.android.js |
_react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:45}}, | <mask> });
<mask>
<mask> it('renders header with a null button',function(){
<mask> var tree=_reactTestRenderer2.default.create(
<mask> _react2.default.createElement(_Header.Header,null,
<mask> null,
<mask> _react2.default.createElement(_Title.Title,null,'Header'))).
<mask>
<mask> toJSON();
<mask> expect(tree).toMatchSnapshot();
</s> Fix for setNativeProps issue #574 </s> remove _react2.default.createElement(_Header.Header,null,
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:45}}, </s> remove _react2.default.createElement(_Header.Header,null,
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:45}}, </s> remove _react2.default.createElement(_Header.Header,null,
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:45}}, </s> remove _react2.default.createElement(_Title.Title,null,'Header'))).
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:47}},'Header'))). </s> remove _react2.default.createElement(_Title.Title,null,'Header'))).
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:47}},'Header'))). | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.android.js |
_react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:47}},'Header'))). | <mask> it('renders header with a null button',function(){
<mask> var tree=_reactTestRenderer2.default.create(
<mask> _react2.default.createElement(_Header.Header,null,
<mask> null,
<mask> _react2.default.createElement(_Title.Title,null,'Header'))).
<mask>
<mask> toJSON();
<mask> expect(tree).toMatchSnapshot();
<mask> });
<mask>
</s> Fix for setNativeProps issue #574 </s> remove _react2.default.createElement(_Header.Header,null,
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:45}}, </s> remove _react2.default.createElement(_Header.Header,null,
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:45}}, </s> remove _react2.default.createElement(_Header.Header,null,
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:45}}, </s> remove _react2.default.createElement(_Header.Header,null,
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:45}}, </s> remove _react2.default.createElement(_Title.Title,null,'Header'))).
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:47}},'Header'))). | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.android.js |
_react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:55}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:56}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:57}})), | <mask> });
<mask>
<mask> it('renders header with buttons and subtitle',function(){
<mask> var tree=_reactTestRenderer2.default.create(
<mask> _react2.default.createElement(_Header.Header,null,
<mask> _react2.default.createElement(_Button.Button,{transparent:true},
<mask> _react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
<mask>
<mask>
<mask> _react2.default.createElement(_Title.Title,null,'Header'),
<mask> _react2.default.createElement(_Subtitle2.default,null,'Subtitle'),
<mask>
</s> Fix for setNativeProps issue #574 </s> remove _react2.default.createElement(_Header.Header,null,
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:55}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:56}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:57}})), </s> remove _react2.default.createElement(_Header.Header,null,
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:55}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:56}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:57}})), </s> remove _react2.default.createElement(_Header.Header,null,
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:55}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:56}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:57}})), </s> remove _react2.default.createElement(_Header.Header,null,
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:86}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:87}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:88}})), </s> remove _react2.default.createElement(_Header.Header,null,
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:86}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:87}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:88}})), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.android.js |
_react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:60}},'Header'),
_react2.default.createElement(_Subtitle2.default,{__source:{fileName:_jsxFileName,lineNumber:61}},'Subtitle'), | <mask> _react2.default.createElement(_Button.Button,{transparent:true},
<mask> _react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
<mask>
<mask>
<mask> _react2.default.createElement(_Title.Title,null,'Header'),
<mask> _react2.default.createElement(_Subtitle2.default,null,'Subtitle'),
<mask>
<mask> _react2.default.createElement(_Button.Button,{transparent:true},
<mask> _react2.default.createElement(_Icon.Icon,{name:'ios-menu'})))).
<mask>
<mask>
</s> Fix for setNativeProps issue #574 </s> remove _react2.default.createElement(_Title.Title,null,'Header'),
_react2.default.createElement(_Subtitle2.default,null,'Subtitle'),
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:60}},'Header'),
_react2.default.createElement(_Subtitle2.default,{__source:{fileName:_jsxFileName,lineNumber:61}},'Subtitle'), </s> remove _react2.default.createElement(_Title.Title,null,'Header'),
_react2.default.createElement(_Subtitle2.default,null,'Subtitle'),
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:60}},'Header'),
_react2.default.createElement(_Subtitle2.default,{__source:{fileName:_jsxFileName,lineNumber:61}},'Subtitle'), </s> remove _react2.default.createElement(_Title.Title,null,'Header'),
_react2.default.createElement(_Subtitle2.default,null,'Subtitle'),
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:60}},'Header'),
_react2.default.createElement(_Subtitle2.default,{__source:{fileName:_jsxFileName,lineNumber:61}},'Subtitle'), </s> remove _react2.default.createElement(_Title.Title,null,'Header'),
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:33}},'Header'), </s> remove _react2.default.createElement(_Title.Title,null,'Header'),
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:33}},'Header'), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.android.js |
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:63}},
_react2.default.createElement(_Icon.Icon,{name:'ios-menu',__source:{fileName:_jsxFileName,lineNumber:64}})))). | <mask>
<mask> _react2.default.createElement(_Title.Title,null,'Header'),
<mask> _react2.default.createElement(_Subtitle2.default,null,'Subtitle'),
<mask>
<mask> _react2.default.createElement(_Button.Button,{transparent:true},
<mask> _react2.default.createElement(_Icon.Icon,{name:'ios-menu'})))).
<mask>
<mask>
<mask> toJSON();
<mask> expect(tree).toMatchSnapshot();
<mask> });
</s> Fix for setNativeProps issue #574 </s> remove _react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-menu'})))).
</s> add _react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:63}},
_react2.default.createElement(_Icon.Icon,{name:'ios-menu',__source:{fileName:_jsxFileName,lineNumber:64}})))). </s> remove _react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-menu'})))).
</s> add _react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:63}},
_react2.default.createElement(_Icon.Icon,{name:'ios-menu',__source:{fileName:_jsxFileName,lineNumber:64}})))). </s> remove _react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-menu'})))).
</s> add _react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:63}},
_react2.default.createElement(_Icon.Icon,{name:'ios-menu',__source:{fileName:_jsxFileName,lineNumber:64}})))). </s> remove _react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-menu'})))).
</s> add _react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:35}},
_react2.default.createElement(_Icon.Icon,{name:'ios-menu',__source:{fileName:_jsxFileName,lineNumber:36}})))). </s> remove _react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-menu'})))).
</s> add _react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:35}},
_react2.default.createElement(_Icon.Icon,{name:'ios-menu',__source:{fileName:_jsxFileName,lineNumber:36}})))). | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.android.js |
_react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:73}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:74}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:75}})), | <mask> });
<mask>
<mask> it('renders header with just one button',function(){
<mask> var tree=_reactTestRenderer2.default.create(
<mask> _react2.default.createElement(_Header.Header,null,
<mask> _react2.default.createElement(_Button.Button,{transparent:true},
<mask> _react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
<mask>
<mask>
<mask> _react2.default.createElement(_Title.Title,null,'Header'))).
<mask>
<mask> toJSON();
</s> Fix for setNativeProps issue #574 </s> remove _react2.default.createElement(_Header.Header,null,
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:73}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:74}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:75}})), </s> remove _react2.default.createElement(_Header.Header,null,
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:73}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:74}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:75}})), </s> remove _react2.default.createElement(_Header.Header,null,
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:73}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:74}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:75}})), </s> remove _react2.default.createElement(_Header.Header,{iconRight:true},
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{iconRight:true,__source:{fileName:_jsxFileName,lineNumber:100}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:101}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:102}})), </s> remove _react2.default.createElement(_Header.Header,{iconRight:true},
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{iconRight:true,__source:{fileName:_jsxFileName,lineNumber:100}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:101}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:102}})), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.android.js |
_react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:78}},'Header'))). | <mask> _react2.default.createElement(_Button.Button,{transparent:true},
<mask> _react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
<mask>
<mask>
<mask> _react2.default.createElement(_Title.Title,null,'Header'))).
<mask>
<mask> toJSON();
<mask> expect(tree).toMatchSnapshot();
<mask> });
<mask>
</s> Fix for setNativeProps issue #574 </s> remove _react2.default.createElement(_Title.Title,null,'Header'))).
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:105}},'Header'))). </s> remove _react2.default.createElement(_Title.Title,null,'Header'))).
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:105}},'Header'))). </s> remove _react2.default.createElement(_Title.Title,null,'Header'))).
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:78}},'Header'))). </s> remove _react2.default.createElement(_Title.Title,null,'Header'))).
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:78}},'Header'))). </s> remove _react2.default.createElement(_Title.Title,null,'Header'))).
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:78}},'Header'))). | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.android.js |
_react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:86}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:87}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:88}})), | <mask> });
<mask>
<mask> it('renders header with just one button and subtitle',function(){
<mask> var tree=_reactTestRenderer2.default.create(
<mask> _react2.default.createElement(_Header.Header,null,
<mask> _react2.default.createElement(_Button.Button,{transparent:true},
<mask> _react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
<mask>
<mask>
<mask> _react2.default.createElement(_Title.Title,null,'Header'),
<mask> _react2.default.createElement(_Subtitle2.default,null,'Subtitle'))).
<mask>
</s> Fix for setNativeProps issue #574 </s> remove _react2.default.createElement(_Header.Header,null,
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:86}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:87}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:88}})), </s> remove _react2.default.createElement(_Header.Header,null,
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:86}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:87}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:88}})), </s> remove _react2.default.createElement(_Header.Header,{iconRight:true},
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{iconRight:true,__source:{fileName:_jsxFileName,lineNumber:113}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:114}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:115}})), </s> remove _react2.default.createElement(_Header.Header,{iconRight:true},
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{iconRight:true,__source:{fileName:_jsxFileName,lineNumber:113}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:114}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:115}})), </s> remove _react2.default.createElement(_Header.Header,{iconRight:true},
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{iconRight:true,__source:{fileName:_jsxFileName,lineNumber:113}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:114}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:115}})), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.android.js |
_react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:91}},'Header'),
_react2.default.createElement(_Subtitle2.default,{__source:{fileName:_jsxFileName,lineNumber:92}},'Subtitle'))). | <mask> _react2.default.createElement(_Button.Button,{transparent:true},
<mask> _react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
<mask>
<mask>
<mask> _react2.default.createElement(_Title.Title,null,'Header'),
<mask> _react2.default.createElement(_Subtitle2.default,null,'Subtitle'))).
<mask>
<mask> toJSON();
<mask> expect(tree).toMatchSnapshot();
<mask> });
<mask>
</s> Fix for setNativeProps issue #574 </s> remove _react2.default.createElement(_Title.Title,null,'Header'),
_react2.default.createElement(_Subtitle2.default,null,'Subtitle'))).
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:91}},'Header'),
_react2.default.createElement(_Subtitle2.default,{__source:{fileName:_jsxFileName,lineNumber:92}},'Subtitle'))). </s> remove _react2.default.createElement(_Title.Title,null,'Header'),
_react2.default.createElement(_Subtitle2.default,null,'Subtitle'))).
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:91}},'Header'),
_react2.default.createElement(_Subtitle2.default,{__source:{fileName:_jsxFileName,lineNumber:92}},'Subtitle'))). </s> remove _react2.default.createElement(_Title.Title,null,'Header'),
_react2.default.createElement(_Subtitle2.default,null,'SubTitle'))).
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:118}},'Header'),
_react2.default.createElement(_Subtitle2.default,{__source:{fileName:_jsxFileName,lineNumber:119}},'SubTitle'))). </s> remove _react2.default.createElement(_Title.Title,null,'Header'),
_react2.default.createElement(_Subtitle2.default,null,'SubTitle'))).
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:118}},'Header'),
_react2.default.createElement(_Subtitle2.default,{__source:{fileName:_jsxFileName,lineNumber:119}},'SubTitle'))). </s> remove _react2.default.createElement(_Title.Title,null,'Header'),
_react2.default.createElement(_Subtitle2.default,null,'SubTitle'))).
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:118}},'Header'),
_react2.default.createElement(_Subtitle2.default,{__source:{fileName:_jsxFileName,lineNumber:119}},'SubTitle'))). | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.android.js |
_react2.default.createElement(_Header.Header,{iconRight:true,__source:{fileName:_jsxFileName,lineNumber:100}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:101}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:102}})), | <mask> });
<mask>
<mask> it('renders header with just one button and iconRight',function(){
<mask> var tree=_reactTestRenderer2.default.create(
<mask> _react2.default.createElement(_Header.Header,{iconRight:true},
<mask> _react2.default.createElement(_Button.Button,{transparent:true},
<mask> _react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
<mask>
<mask>
<mask> _react2.default.createElement(_Title.Title,null,'Header'))).
<mask>
<mask> toJSON();
</s> Fix for setNativeProps issue #574 </s> remove _react2.default.createElement(_Header.Header,{iconRight:true},
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{iconRight:true,__source:{fileName:_jsxFileName,lineNumber:100}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:101}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:102}})), </s> remove _react2.default.createElement(_Header.Header,{iconRight:true},
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{iconRight:true,__source:{fileName:_jsxFileName,lineNumber:100}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:101}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:102}})), </s> remove _react2.default.createElement(_Header.Header,null,
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:86}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:87}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:88}})), </s> remove _react2.default.createElement(_Header.Header,null,
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:86}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:87}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:88}})), </s> remove _react2.default.createElement(_Header.Header,null,
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:86}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:87}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:88}})), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.android.js |
_react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:105}},'Header'))). | <mask> _react2.default.createElement(_Button.Button,{transparent:true},
<mask> _react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
<mask>
<mask>
<mask> _react2.default.createElement(_Title.Title,null,'Header'))).
<mask>
<mask> toJSON();
<mask> expect(tree).toMatchSnapshot();
<mask> });
<mask>
</s> Fix for setNativeProps issue #574 </s> remove _react2.default.createElement(_Title.Title,null,'Header'))).
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:78}},'Header'))). </s> remove _react2.default.createElement(_Title.Title,null,'Header'))).
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:105}},'Header'))). </s> remove _react2.default.createElement(_Title.Title,null,'Header'))).
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:78}},'Header'))). </s> remove _react2.default.createElement(_Title.Title,null,'Header'))).
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:78}},'Header'))). </s> remove _react2.default.createElement(_Title.Title,null,'Header'))).
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:78}},'Header'))). | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.android.js |
_react2.default.createElement(_Header.Header,{iconRight:true,__source:{fileName:_jsxFileName,lineNumber:113}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:114}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:115}})), | <mask> });
<mask>
<mask> it('renders header with just one button, iconRight and a subtitle',function(){
<mask> var tree=_reactTestRenderer2.default.create(
<mask> _react2.default.createElement(_Header.Header,{iconRight:true},
<mask> _react2.default.createElement(_Button.Button,{transparent:true},
<mask> _react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
<mask>
<mask>
<mask> _react2.default.createElement(_Title.Title,null,'Header'),
<mask> _react2.default.createElement(_Subtitle2.default,null,'SubTitle'))).
<mask>
</s> Fix for setNativeProps issue #574 </s> remove _react2.default.createElement(_Header.Header,{iconRight:true},
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{iconRight:true,__source:{fileName:_jsxFileName,lineNumber:113}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:114}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:115}})), </s> remove _react2.default.createElement(_Header.Header,{iconRight:true},
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{iconRight:true,__source:{fileName:_jsxFileName,lineNumber:113}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:114}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:115}})), </s> remove _react2.default.createElement(_Header.Header,null,
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:86}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:87}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:88}})), </s> remove _react2.default.createElement(_Header.Header,null,
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:86}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:87}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:88}})), </s> remove _react2.default.createElement(_Header.Header,null,
_react2.default.createElement(_Button.Button,{transparent:true},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:86}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:87}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:88}})), | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.android.js |
_react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:118}},'Header'),
_react2.default.createElement(_Subtitle2.default,{__source:{fileName:_jsxFileName,lineNumber:119}},'SubTitle'))). | <mask> _react2.default.createElement(_Button.Button,{transparent:true},
<mask> _react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
<mask>
<mask>
<mask> _react2.default.createElement(_Title.Title,null,'Header'),
<mask> _react2.default.createElement(_Subtitle2.default,null,'SubTitle'))).
<mask>
<mask> toJSON();
<mask> expect(tree).toMatchSnapshot();
<mask> });
<mask> //# sourceMappingURL=Header.android.js.map </s> Fix for setNativeProps issue #574 </s> remove _react2.default.createElement(_Title.Title,null,'Header'),
_react2.default.createElement(_Subtitle2.default,null,'SubTitle'))).
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:118}},'Header'),
_react2.default.createElement(_Subtitle2.default,{__source:{fileName:_jsxFileName,lineNumber:119}},'SubTitle'))). </s> remove _react2.default.createElement(_Title.Title,null,'Header'),
_react2.default.createElement(_Subtitle2.default,null,'SubTitle'))).
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:118}},'Header'),
_react2.default.createElement(_Subtitle2.default,{__source:{fileName:_jsxFileName,lineNumber:119}},'SubTitle'))). </s> remove _react2.default.createElement(_Title.Title,null,'Header'),
_react2.default.createElement(_Subtitle2.default,null,'Subtitle'))).
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:91}},'Header'),
_react2.default.createElement(_Subtitle2.default,{__source:{fileName:_jsxFileName,lineNumber:92}},'Subtitle'))). </s> remove _react2.default.createElement(_Title.Title,null,'Header'),
_react2.default.createElement(_Subtitle2.default,null,'Subtitle'))).
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:91}},'Header'),
_react2.default.createElement(_Subtitle2.default,{__source:{fileName:_jsxFileName,lineNumber:92}},'Subtitle'))). </s> remove _react2.default.createElement(_Title.Title,null,'Header'),
_react2.default.createElement(_Subtitle2.default,null,'Subtitle'))).
</s> add _react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:91}},'Header'),
_react2.default.createElement(_Subtitle2.default,{__source:{fileName:_jsxFileName,lineNumber:92}},'Subtitle'))). | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.android.js |
var _jsxFileName='__tests__/backward/Header.ios.js';require('react-native'); | <mask> require('react-native');
<mask> var _react=require('react');var _react2=_interopRequireDefault(_react);
<mask> var _reactTestRenderer=require('react-test-renderer');var _reactTestRenderer2=_interopRequireDefault(_reactTestRenderer);
<mask> var _Header=require('./../../src/backward/Widgets/Header');
<mask> var _Button=require('./../../src/backward/Widgets/Button');
<mask> var _Icon=require('./../../src/backward/Widgets/Icon');
</s> Fix for setNativeProps issue #574 </s> remove require('react-native');
</s> add var _jsxFileName='__tests__/backward/Header.android.js';require('react-native'); </s> remove require('react-native');
</s> add var _jsxFileName='__tests__/backward/Button.android.js';require('react-native'); </s> remove require('react-native');
</s> add var _jsxFileName='__tests__/backward/Button.ios.js';require('react-native'); </s> remove require('react-native');
</s> add var _jsxFileName='__tests__/basic/Button.android.js';require('react-native'); </s> remove require('react-native');
</s> add var _jsxFileName='__tests__/basic/Button.ios.js';require('react-native'); | [
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.ios.js |
_react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:21}})). | <mask> jest.mock('ScrollView',function(){return'ScrollView';});
<mask>
<mask> it('renders correctly',function(){
<mask> var tree=_reactTestRenderer2.default.create(
<mask> _react2.default.createElement(_Header.Header,null)).
<mask> toJSON();
<mask> expect(tree).toMatchSnapshot();
<mask> });
<mask>
<mask> it('renders header with buttons',function(){
</s> Fix for setNativeProps issue #574 | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.ios.js |
_react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:28}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:29}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:30}})), | <mask> });
<mask>
<mask> it('renders header with buttons',function(){
<mask> var tree=_reactTestRenderer2.default.create(
<mask> _react2.default.createElement(_Header.Header,null,
<mask> _react2.default.createElement(_Button.Button,{transparent:true},
<mask> _react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
<mask>
<mask>
<mask> _react2.default.createElement(_Title.Title,null,'Header'),
<mask>
<mask> _react2.default.createElement(_Button.Button,{transparent:true},
</s> Fix for setNativeProps issue #574 | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.ios.js |
_react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:33}},'Header'), | <mask> _react2.default.createElement(_Button.Button,{transparent:true},
<mask> _react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
<mask>
<mask>
<mask> _react2.default.createElement(_Title.Title,null,'Header'),
<mask>
<mask> _react2.default.createElement(_Button.Button,{transparent:true},
<mask> _react2.default.createElement(_Icon.Icon,{name:'ios-menu'})))).
<mask>
<mask>
</s> Fix for setNativeProps issue #574 | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.ios.js |
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:35}},
_react2.default.createElement(_Icon.Icon,{name:'ios-menu',__source:{fileName:_jsxFileName,lineNumber:36}})))). | <mask>
<mask>
<mask> _react2.default.createElement(_Title.Title,null,'Header'),
<mask>
<mask> _react2.default.createElement(_Button.Button,{transparent:true},
<mask> _react2.default.createElement(_Icon.Icon,{name:'ios-menu'})))).
<mask>
<mask>
<mask> toJSON();
<mask> expect(tree).toMatchSnapshot();
<mask> });
</s> Fix for setNativeProps issue #574 | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.ios.js |
_react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:45}}, | <mask> });
<mask>
<mask> it('renders header with a null button',function(){
<mask> var tree=_reactTestRenderer2.default.create(
<mask> _react2.default.createElement(_Header.Header,null,
<mask> null,
<mask> _react2.default.createElement(_Title.Title,null,'Header'))).
<mask>
<mask> toJSON();
<mask> expect(tree).toMatchSnapshot();
</s> Fix for setNativeProps issue #574 | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.ios.js |
_react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:47}},'Header'))). | <mask> it('renders header with a null button',function(){
<mask> var tree=_reactTestRenderer2.default.create(
<mask> _react2.default.createElement(_Header.Header,null,
<mask> null,
<mask> _react2.default.createElement(_Title.Title,null,'Header'))).
<mask>
<mask> toJSON();
<mask> expect(tree).toMatchSnapshot();
<mask> });
<mask>
</s> Fix for setNativeProps issue #574 | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.ios.js |
_react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:55}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:56}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:57}})), | <mask> });
<mask>
<mask> it('renders header with buttons and subtitle',function(){
<mask> var tree=_reactTestRenderer2.default.create(
<mask> _react2.default.createElement(_Header.Header,null,
<mask> _react2.default.createElement(_Button.Button,{transparent:true},
<mask> _react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
<mask>
<mask>
<mask> _react2.default.createElement(_Title.Title,null,'Header'),
<mask> _react2.default.createElement(_Subtitle2.default,null,'Subtitle'),
<mask>
</s> Fix for setNativeProps issue #574 | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.ios.js |
_react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:60}},'Header'),
_react2.default.createElement(_Subtitle2.default,{__source:{fileName:_jsxFileName,lineNumber:61}},'Subtitle'), | <mask> _react2.default.createElement(_Button.Button,{transparent:true},
<mask> _react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
<mask>
<mask>
<mask> _react2.default.createElement(_Title.Title,null,'Header'),
<mask> _react2.default.createElement(_Subtitle2.default,null,'Subtitle'),
<mask>
<mask> _react2.default.createElement(_Button.Button,{transparent:true},
<mask> _react2.default.createElement(_Icon.Icon,{name:'ios-menu'})))).
<mask>
<mask>
</s> Fix for setNativeProps issue #574 | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.ios.js |
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:63}},
_react2.default.createElement(_Icon.Icon,{name:'ios-menu',__source:{fileName:_jsxFileName,lineNumber:64}})))). | <mask>
<mask> _react2.default.createElement(_Title.Title,null,'Header'),
<mask> _react2.default.createElement(_Subtitle2.default,null,'Subtitle'),
<mask>
<mask> _react2.default.createElement(_Button.Button,{transparent:true},
<mask> _react2.default.createElement(_Icon.Icon,{name:'ios-menu'})))).
<mask>
<mask>
<mask> toJSON();
<mask> expect(tree).toMatchSnapshot();
<mask> });
</s> Fix for setNativeProps issue #574 | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.ios.js |
_react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:73}},
_react2.default.createElement(_Button.Button,{transparent:true,__source:{fileName:_jsxFileName,lineNumber:74}},
_react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back',__source:{fileName:_jsxFileName,lineNumber:75}})), | <mask> });
<mask>
<mask> it('renders header with just one button',function(){
<mask> var tree=_reactTestRenderer2.default.create(
<mask> _react2.default.createElement(_Header.Header,null,
<mask> _react2.default.createElement(_Button.Button,{transparent:true},
<mask> _react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
<mask>
<mask>
<mask> _react2.default.createElement(_Title.Title,null,'Header'))).
<mask>
<mask> toJSON();
</s> Fix for setNativeProps issue #574 | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.ios.js |
_react2.default.createElement(_Title.Title,{__source:{fileName:_jsxFileName,lineNumber:78}},'Header'))). | <mask> _react2.default.createElement(_Button.Button,{transparent:true},
<mask> _react2.default.createElement(_Icon.Icon,{name:'ios-arrow-back'})),
<mask>
<mask>
<mask> _react2.default.createElement(_Title.Title,null,'Header'))).
<mask>
<mask> toJSON();
<mask> expect(tree).toMatchSnapshot();
<mask> });
<mask>
</s> Fix for setNativeProps issue #574 | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/backward/Header.ios.js |
_react2.default.createElement(_Badge.Badge,{__source:{fileName:_jsxFileName,lineNumber:18}},'2')). | <mask>
<mask>
<mask> it('renders regular badge',function(){
<mask> var tree=_reactTestRenderer2.default.create(
<mask> _react2.default.createElement(_Badge.Badge,null,'2')).
<mask>
<mask>
<mask> toJSON();
<mask> expect(tree).toMatchSnapshot();
<mask> });
</s> Fix for setNativeProps issue #574 </s> remove _react2.default.createElement(_Button.Button,null,'Test')).
</s> add _react2.default.createElement(_Button.Button,{__source:{fileName:_jsxFileName,lineNumber:19}},'Test')). </s> remove _react2.default.createElement(_Button.Button,null,'Test')).
</s> add _react2.default.createElement(_Button.Button,{__source:{fileName:_jsxFileName,lineNumber:19}},'Test')). </s> remove _react2.default.createElement(_Button.Button,null,'Test')).
</s> add _react2.default.createElement(_Button.Button,{__source:{fileName:_jsxFileName,lineNumber:19}},'Test')). </s> remove _react2.default.createElement(_Button.Button,null,'Test')).
</s> add _react2.default.createElement(_Button.Button,{__source:{fileName:_jsxFileName,lineNumber:19}},'Test')). </s> remove _react2.default.createElement(_Header.Header,null)).
</s> add _react2.default.createElement(_Header.Header,{__source:{fileName:_jsxFileName,lineNumber:21}})). | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/basic/Badge.ios.js |
var _jsxFileName='__tests__/basic/Button.android.js';require('react-native'); | <mask> require('react-native');
<mask> var _reactTestRenderer=require('react-test-renderer');var _reactTestRenderer2=_interopRequireDefault(_reactTestRenderer);
<mask>
<mask> var _react=require('react');var _react2=_interopRequireDefault(_react);
<mask> var _Button=require('./../../src/basic/Button');function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
<mask>
</s> Fix for setNativeProps issue #574 </s> remove require('react-native');
</s> add var _jsxFileName='__tests__/basic/Button.ios.js';require('react-native'); </s> remove require('react-native');
</s> add var _jsxFileName='__tests__/backward/Button.android.js';require('react-native'); </s> remove require('react-native');
</s> add var _jsxFileName='__tests__/backward/Button.ios.js';require('react-native'); </s> remove require('react-native');
</s> add var _jsxFileName='__tests__/basic/Header.android.js';require('react-native'); </s> remove require('react-native');
</s> add var _jsxFileName='__tests__/basic/Header.ios.js';require('react-native'); | [
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/basic/Button.android.js |
_react2.default.createElement(_Button.Button,{__source:{fileName:_jsxFileName,lineNumber:19}},'Test')). | <mask>
<mask>
<mask> it('renders regular button',function(){
<mask> var tree=_reactTestRenderer2.default.create(
<mask> _react2.default.createElement(_Button.Button,null,'Test')).
<mask>
<mask>
<mask> toJSON();
<mask> expect(tree).toMatchSnapshot();
<mask> });
</s> Fix for setNativeProps issue #574 | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/e9c5b9fa5b4542d786b264be9d9921af5fcc99bc | dist/__tests__/basic/Button.android.js |