Skip to content

Commit 5d4235f

Browse files
authored
fix: touchable opacity press handlers typing (#2447)
1 parent 1af5491 commit 5d4235f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/components/touchableOpacity/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ export interface TouchableOpacityProps
4444
customValue?: any;
4545
style?: ViewProps['style'];
4646
onPress?: (props?: TouchableOpacityProps | any) => void;
47-
onPressIn?: (props?: TouchableOpacityProps) => void | RNTouchableOpacityProps['onPressIn'];
48-
onPressOut?: (props?: TouchableOpacityProps) => void | RNTouchableOpacityProps['onPressOut'];
49-
onLongPress?: (props?: TouchableOpacityProps) => void | RNTouchableOpacityProps['onLongPress'];
47+
onPressIn?: (props?: TouchableOpacityProps | any) => void | RNTouchableOpacityProps['onPressIn'];
48+
onPressOut?: (props?: TouchableOpacityProps | any) => void | RNTouchableOpacityProps['onPressOut'];
49+
onLongPress?: (props?: TouchableOpacityProps | any) => void | RNTouchableOpacityProps['onLongPress'];
5050
}
5151

5252
type Props = BaseComponentInjectedProps & ForwardRefInjectedProps & TouchableOpacityProps;

webDemo/src/examples/Picker.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const PickerWrapper = () => {
2323
onChange={setLanguage}
2424
topBarProps={{title: 'Languages'}}
2525
showSearch
26+
fieldType={Picker.fieldTypes.filter}
2627
searchPlaceholder={'Search a language'}
2728
searchStyle={{color: Colors.blue30, placeholderTextColor: Colors.grey50}}
2829
migrateTextField

0 commit comments

Comments
 (0)