From d30e1bf10061603b511354492df5230b33e423bc Mon Sep 17 00:00:00 2001 From: levi serebryanski Date: Wed, 12 Jul 2017 16:44:55 -0400 Subject: [PATCH 1/2] remove focusedOpacity prop and function --- Libraries/Components/Touchable/TouchableOpacity.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Libraries/Components/Touchable/TouchableOpacity.js b/Libraries/Components/Touchable/TouchableOpacity.js index cc9430f3d1a9b9..43bb9e3e76d3ad 100644 --- a/Libraries/Components/Touchable/TouchableOpacity.js +++ b/Libraries/Components/Touchable/TouchableOpacity.js @@ -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 */ @@ -72,8 +71,7 @@ var TouchableOpacity = createReactClass({ getDefaultProps: function() { return { - activeOpacity: 0.2, - focusedOpacity: 0.7, + activeOpacity: 0.2 }; }, @@ -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; From 0fee03241e00cd875ca175fa526bc6955eacde02 Mon Sep 17 00:00:00 2001 From: levi serebryanski Date: Fri, 14 Jul 2017 00:13:50 -0400 Subject: [PATCH 2/2] add back missing commas --- Libraries/Components/Touchable/TouchableOpacity.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/Components/Touchable/TouchableOpacity.js b/Libraries/Components/Touchable/TouchableOpacity.js index 43bb9e3e76d3ad..72735325e16560 100644 --- a/Libraries/Components/Touchable/TouchableOpacity.js +++ b/Libraries/Components/Touchable/TouchableOpacity.js @@ -62,7 +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 + activeOpacity: PropTypes.number, /** * Apple TV parallax effects */ @@ -71,7 +71,7 @@ var TouchableOpacity = createReactClass({ getDefaultProps: function() { return { - activeOpacity: 0.2 + activeOpacity: 0.2, }; },