Skip to content

Commit d30e1bf

Browse files
committed
remove focusedOpacity prop and function
1 parent 98b925c commit d30e1bf

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

Libraries/Components/Touchable/TouchableOpacity.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ var TouchableOpacity = createReactClass({
6262
* Determines what the opacity of the wrapped view should be when touch is
6363
* active. Defaults to 0.2.
6464
*/
65-
activeOpacity: PropTypes.number,
66-
focusedOpacity: PropTypes.number,
65+
activeOpacity: PropTypes.number
6766
/**
6867
* Apple TV parallax effects
6968
*/
@@ -72,8 +71,7 @@ var TouchableOpacity = createReactClass({
7271

7372
getDefaultProps: function() {
7473
return {
75-
activeOpacity: 0.2,
76-
focusedOpacity: 0.7,
74+
activeOpacity: 0.2
7775
};
7876
},
7977

@@ -165,10 +163,6 @@ var TouchableOpacity = createReactClass({
165163
);
166164
},
167165

168-
_opacityFocused: function() {
169-
this.setOpacityTo(this.props.focusedOpacity);
170-
},
171-
172166
_getChildStyleOpacityWithDefault: function() {
173167
var childStyle = flattenStyle(this.props.style) || {};
174168
return childStyle.opacity == undefined ? 1 : childStyle.opacity;

0 commit comments

Comments
 (0)