File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/components/touchableOpacity Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
import _ from 'lodash' ;
2
- import React , { PureComponent } from 'react' ;
2
+ import React , { BaseSyntheticEvent , PureComponent } from 'react' ;
3
3
import { TouchableOpacity as RNTouchableOpacity , TouchableOpacityProps as RNTouchableOpacityProps } from 'react-native' ;
4
4
import {
5
5
asBaseComponent ,
@@ -155,12 +155,12 @@ class TouchableOpacity extends PureComponent<Props, {active: boolean}> {
155
155
) ;
156
156
}
157
157
158
- onPress ( ) {
159
- this . props . onPress ?.( this . props ) ;
158
+ onPress ( event : BaseSyntheticEvent ) {
159
+ this . props . onPress ?.( { ... this . props , ... event } ) ;
160
160
}
161
161
162
- onLongPress = ( ) => {
163
- this . props . onLongPress ?.( this . props ) ;
162
+ onLongPress = ( event : BaseSyntheticEvent ) => {
163
+ this . props . onLongPress ?.( { ... this . props , ... event } ) ;
164
164
} ;
165
165
}
166
166
You can’t perform that action at this time.
0 commit comments