react-native/Libraries/Components/Touchable
mlanter f66fba83cf Set initial opacity based on style
Summary:
Set the initial opacity based on the style opacity instead of defaulting to 1.  Without this change, if the opacity on the view is set to 0.5 (for example), the component will render with 1 opacity and then after a press and release it will set to 0.5.  This fixes it to set to the correct value on mount.

**Test plan (required)**
Example code:
```
      <TouchableOpacity
        activeOpacity={1}
        style={STYLES.Button}>
        {...}
      </TouchableOpacity>
```
```
const STYLES = StyleSheet.create({
  Button: {
    opacity: 0.5,
  },
});
```

Before (notice starts out dark and then after click and release becomes light):
![before](https://cloud.githubusercontent.com/assets/19673711/23444255/c120cbb0-fde8-11e6-8c03-ef4f0f25736b.gif)

After (starts out light and is the same light color after a click and release):
![after](https://cloud.githubusercontent.com/assets/19673711/23444254/c106a6e0-fde8-11e6-8181-def45b7bb84f.gif)
Closes https://github.com/facebook/react-native/pull/12628

Differential Revision: D4641509

fbshipit-source-id: 3b6cf653fe837df704007f585c655d4450d14497
2017-03-01 21:46:40 -08:00
..
__mocks__ Update to 14.0 2016-07-27 22:13:26 -07:00
__tests__ Update Jest to 19.0.2 2017-02-24 08:30:50 -08:00
BoundingDimensions.js
Position.js
Touchable.js return if UIManager failed to measure node 2017-02-09 21:00:17 -08:00
TouchableBounce.js RN: Update React (2/2) 2016-11-04 05:43:44 -07:00
TouchableHighlight.js Correct/consistent docs for Touchable components 2017-02-27 14:04:57 -08:00
TouchableNativeFeedback.android.js Correct/consistent docs for Touchable components 2017-02-27 14:04:57 -08:00
TouchableNativeFeedback.ios.js Convert from React.createClass to ES6 classes 2016-07-26 01:13:31 -07:00
TouchableOpacity.js Set initial opacity based on style 2017-03-01 21:46:40 -08:00
TouchableWithoutFeedback.js Correct/consistent docs for Touchable components 2017-02-27 14:04:57 -08:00
ensureComponentIsNative.js
ensurePositiveDelayProps.js