Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
remove focusedOpacity prop and function
  • Loading branch information
levsero committed Jul 12, 2017
commit d30e1bf10061603b511354492df5230b33e423bc
10 changes: 2 additions & 8 deletions Libraries/Components/Touchable/TouchableOpacity.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ var TouchableOpacity = createReactClass({
* Determines what the opacity of the wrapped view should be when touch is
* active. Defaults to 0.2.
*/
activeOpacity: PropTypes.number,
focusedOpacity: PropTypes.number,
activeOpacity: PropTypes.number
/**
* Apple TV parallax effects
*/
Expand All @@ -72,8 +71,7 @@ var TouchableOpacity = createReactClass({

getDefaultProps: function() {
return {
activeOpacity: 0.2,
focusedOpacity: 0.7,
activeOpacity: 0.2
};
},

Expand Down Expand Up @@ -165,10 +163,6 @@ var TouchableOpacity = createReactClass({
);
},

_opacityFocused: function() {
this.setOpacityTo(this.props.focusedOpacity);
},

_getChildStyleOpacityWithDefault: function() {
var childStyle = flattenStyle(this.props.style) || {};
return childStyle.opacity == undefined ? 1 : childStyle.opacity;
Expand Down