react-native/React/Views
Julien K 6c353fd7e9 onPress animation with magnification
Summary:
Related to: #15454

Motivation: Improve tvOS feeling for TouchableHighlight

![changewithaniamtion](https://user-images.githubusercontent.com/7658664/29193477-b99b4a10-7e25-11e7-8b31-e0e4ca9d7720.gif)

- When you select the button he is focus and the underlay is show
- When you press the button, there is an animation, but after the animation, the focus is on the button and the underlay is show

Play with tvParallaxProperties on tvOS, test with and without patch just to see the actual behaviour
```
			<TouchableHighlight
						tvParallaxProperties={{
							enabled: true,
							shiftDistanceX: 0,
							shiftDistanceY: 0,
							tiltAngle: 0,
							magnification: 1.1,
                                                        pressMagnification: 1.0,
							pressDuration: 0.3,
						}}
						underlayColor="black"
						onShowUnderlay={() => (console.log("onShowUnderlay")}
						onHideUnderlay={() =>  (console.log("onHideUnderlay")}
						onPress={() =>  (console.log("onPress")}
					>
						<Image
							style={styles.image}
							source={ uri: 'https://www.facebook.com/images/fb_icon_325x325.png' }
						/>
					</TouchableHighlight>
```
Closes https://github.com/facebook/react-native/pull/15455

Differential Revision: D6887437

Pulled By: hramos

fbshipit-source-id: e18b695068bc99643ba4006fb3f39215b38a74c1
2018-02-27 13:10:02 -08:00
..
SafeAreaView Update license headers for MIT license 2018-02-16 18:31:53 -08:00
ScrollView Fix: Added scroll Bounds check in scrollToOffset method in RCTScrollView on iOS 2018-02-25 22:18:31 -08:00
RCTActivityIndicatorView.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTActivityIndicatorView.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTActivityIndicatorViewManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTActivityIndicatorViewManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTAnimationType.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTAutoInsetsProtocol.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTBorderDrawing.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTBorderDrawing.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTBorderStyle.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTComponent.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTComponentData.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTComponentData.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTConvert+CoreLocation.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTConvert+CoreLocation.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTConvert+Transform.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTConvert+Transform.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTDatePicker.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTDatePicker.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTDatePickerManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTDatePickerManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTFont.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTFont.mm Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTLayout.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTLayout.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTMaskedView.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTMaskedView.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTMaskedViewManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTMaskedViewManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTModalHostView.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTModalHostView.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTModalHostViewController.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTModalHostViewController.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTModalHostViewManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTModalHostViewManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTModalManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTModalManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTNavItem.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTNavItem.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTNavItemManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTNavItemManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTNavigator.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTNavigator.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTNavigatorManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTNavigatorManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTPicker.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTPicker.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTPickerManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTPickerManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTPointerEvents.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTProgressViewManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTProgressViewManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTRefreshControl.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTRefreshControl.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTRefreshControlManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTRefreshControlManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTRootShadowView.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTRootShadowView.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSegmentedControl.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSegmentedControl.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSegmentedControlManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSegmentedControlManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTShadowView+Internal.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTShadowView+Internal.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTShadowView+Layout.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTShadowView+Layout.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTShadowView.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTShadowView.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSlider.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSlider.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSliderManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSliderManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSwitch.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSwitch.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSwitchManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSwitchManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTVView.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTVView.m onPress animation with magnification 2018-02-27 13:10:02 -08:00
RCTTabBar.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTabBar.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTabBarItem.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTabBarItem.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTabBarItemManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTabBarItemManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTabBarManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTabBarManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTTextDecorationLineType.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTView.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTView.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTViewManager.h Mark ObjC methods that are called from React Native as dynamic. 2018-02-26 12:24:17 -08:00
RCTViewManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTWebView.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTWebView.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTWebViewManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTWebViewManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTWrapperViewController.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTWrapperViewController.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
UIView+Private.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
UIView+React.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
UIView+React.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00