Skip to content

Commit 5b49d81

Browse files
authored
Fix issues found in other modules (#1215)
1 parent 520ccd7 commit 5b49d81

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

generatedTypes/components/radioButton/RadioGroup.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export declare type RadioGroupProps = ViewProps & {
99
/**
1010
* Invoked once when value changes, by selecting one of the radio buttons in the group
1111
*/
12-
onValueChange?: ((value: string) => void) | ((value: number) => void) | ((value: boolean) => void);
12+
onValueChange?: ((value: string) => void) | ((value: number) => void) | ((value: boolean) => void) | ((value: any) => void);
1313
};
1414
export declare type RadioGroupPropTypes = RadioGroupProps;
1515
interface RadioGroupState {
@@ -40,7 +40,7 @@ declare const _default: React.ComponentClass<ViewProps & {
4040
/**
4141
* Invoked once when value changes, by selecting one of the radio buttons in the group
4242
*/
43-
onValueChange?: ((value: string) => void) | ((value: number) => void) | ((value: boolean) => void) | undefined;
43+
onValueChange?: ((value: string) => void) | ((value: number) => void) | ((value: boolean) => void) | ((value: any) => void) | undefined;
4444
} & {
4545
useCustomTheme?: boolean | undefined;
4646
}, any>;

generatedTypes/components/touchableOpacity/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export interface TouchableOpacityProps extends Omit<RNTouchableOpacityProps, 'st
3030
*/
3131
customValue?: any;
3232
style?: StyleProp<ViewStyle> | Animated.AnimatedProps<StyleProp<ViewStyle>>;
33-
onPress?: (props: TouchableOpacityProps) => void;
33+
onPress?: (props: TouchableOpacityProps | any) => void;
3434
}
3535
declare const _default: React.ComponentClass<TouchableOpacityProps & {
3636
useCustomTheme?: boolean | undefined;

src/components/radioButton/RadioGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export type RadioGroupProps = ViewProps & {
1717
/**
1818
* Invoked once when value changes, by selecting one of the radio buttons in the group
1919
*/
20-
onValueChange?: ((value: string) => void) | ((value: number) => void) | ((value: boolean) => void);
20+
onValueChange?: ((value: string) => void) | ((value: number) => void) | ((value: boolean) => void) | ((value: any) => void);
2121
};
2222
export type RadioGroupPropTypes = RadioGroupProps; //TODO: remove after ComponentPropTypes deprecation;
2323

src/components/touchableOpacity/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export interface TouchableOpacityProps extends Omit<RNTouchableOpacityProps, 'st
4444
*/
4545
customValue?: any;
4646
style?: StyleProp<ViewStyle> | Animated.AnimatedProps<StyleProp<ViewStyle>>;
47-
onPress?: (props: TouchableOpacityProps) => void;
47+
onPress?: (props: TouchableOpacityProps | any) => void;
4848
}
4949

5050
type Props = BaseComponentInjectedProps &

typings/components/ColorPicker.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export interface ColorPickerProps extends DialogProps {
99
animatedIndex?: number;
1010
initialColor?: ColorValue;
1111
onSubmit?: (selectedColor: ColorValue, textColor: ColorValue) => void;
12+
onValueChange?: Function;
1213
}
1314

1415
export class ColorPicker extends PureBaseComponent<ColorPickerProps> {}

0 commit comments

Comments
 (0)