This repository was archived by the owner on Jun 3, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 1+ /**
2+ * https://github.com/facebook/react-native/blob/master/Libraries/Components/Touchable/TouchableOpacity.js
3+ */
4+ import React from 'react' ;
5+
6+ import TouchableWithoutFeedback from './TouchableWithoutFeedback' ;
7+
8+ const TouchableOpacity = React . createClass ( {
9+ propTypes : {
10+ ...TouchableWithoutFeedback . propTypes ,
11+
12+ /**
13+ * Determines what the opacity of the wrapped view should be when touch is
14+ * active. Defaults to 0.2.
15+ */
16+ activeOpacity : React . PropTypes . number ,
17+ } ,
18+
19+ render ( ) {
20+ return null ;
21+ } ,
22+ } ) ;
23+
24+ module . exports = TouchableOpacity ;
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ const ReactNative = {
4646 Touchable : createMockComponent ( 'Touchable' ) ,
4747 TouchableHighlight : createMockComponent ( 'TouchableHighlight' ) ,
4848 TouchableNativeFeedback : createMockComponent ( 'TouchableNativeFeedback' ) ,
49- TouchableOpacity : createMockComponent ( ' TouchableOpacity') ,
49+ TouchableOpacity : require ( './components/ TouchableOpacity') ,
5050 TouchableWithoutFeedback : require ( './components/TouchableWithoutFeedback' ) ,
5151 View : require ( './components/View' ) ,
5252 ViewPagerAndroid : createMockComponent ( 'ViewPagerAndroid' ) ,
You can’t perform that action at this time.
0 commit comments