FloatFromLeft scene configuration fixed. HorizontalSwipeJumpFromRight…
Summary: `FloatFromLeft` configuration was wrong. its animation was ok but the swipe back was wrong. for example you had to swipe from left to right for a `back` action which should be swipe from right to left. `HorizontalSwipeJumpFromRight` is the same as `HorizontalSwipeJump` but for RTL layouts. Closes https://github.com/facebook/react-native/pull/4815 Reviewed By: svcscm Differential Revision: D2766720 Pulled By: androidtrunkagent fb-gh-sync-id: 2b60f2d238a8f8e5b27dbfb307887934be477c81
This commit is contained in:
parent
d52723efec
commit
f48961388e
|
@ -515,6 +515,9 @@ var NavigatorSceneConfigs = {
|
|||
},
|
||||
FloatFromLeft: {
|
||||
...BaseConfig,
|
||||
gestures: {
|
||||
pop: BaseRightToLeftGesture,
|
||||
},
|
||||
animationInterpolators: {
|
||||
into: buildStyleInterpolator(FromTheLeft),
|
||||
out: buildStyleInterpolator(FadeToTheRight),
|
||||
|
@ -574,6 +577,28 @@ var NavigatorSceneConfigs = {
|
|||
out: buildStyleInterpolator(ToTheLeft),
|
||||
},
|
||||
},
|
||||
HorizontalSwipeJumpFromRight: {
|
||||
...BaseConfig,
|
||||
gestures: {
|
||||
jumpBack: {
|
||||
...BaseRightToLeftGesture,
|
||||
overswipe: BaseOverswipeConfig,
|
||||
edgeHitWidth: null,
|
||||
isDetachable: true,
|
||||
},
|
||||
jumpForward: {
|
||||
...BaseLeftToRightGesture,
|
||||
overswipe: BaseOverswipeConfig,
|
||||
edgeHitWidth: null,
|
||||
isDetachable: true,
|
||||
},
|
||||
pop: BaseRightToLeftGesture,
|
||||
},
|
||||
animationInterpolators: {
|
||||
into: buildStyleInterpolator(FromTheLeft),
|
||||
out: buildStyleInterpolator(FadeToTheRight),
|
||||
},
|
||||
},
|
||||
VerticalUpSwipeJump: {
|
||||
...BaseConfig,
|
||||
gestures: {
|
||||
|
|
Loading…
Reference in New Issue