mirror of
https://github.com/status-im/react-native.git
synced 2025-02-05 14:13:26 +00:00
Add HorizontalSwipeJumpFromLeft animation to Navigator
Summary: This brings RN Navigator to add HorizontalSwipeJumpFromLeft animation. HorizontalSwipeJumpFromRight has been implemented but FromLeft version of SwipeJumpAnimation hasn't been there. Closes https://github.com/facebook/react-native/pull/10406 Differential Revision: D4035212 fbshipit-source-id: edcbae18148e533b02a7d056de03154fb86280d0
This commit is contained in:
parent
40e8d8904b
commit
2230117f36
@ -307,6 +307,7 @@ var Navigator = React.createClass({
|
||||
* - Navigator.SceneConfigs.FadeAndroid
|
||||
* - Navigator.SceneConfigs.HorizontalSwipeJump
|
||||
* - Navigator.SceneConfigs.HorizontalSwipeJumpFromRight
|
||||
* - Navigator.SceneConfigs.HorizontalSwipeJumpFromLeft
|
||||
* - Navigator.SceneConfigs.VerticalUpSwipeJump
|
||||
* - Navigator.SceneConfigs.VerticalDownSwipeJump
|
||||
*
|
||||
|
@ -698,6 +698,28 @@ var NavigatorSceneConfigs = {
|
||||
out: buildStyleInterpolator(directionMapping.FadeToTheEnd),
|
||||
},
|
||||
},
|
||||
HorizontalSwipeJumpFromLeft: {
|
||||
...BaseConfig,
|
||||
gestures: {
|
||||
jumpBack: {
|
||||
...directionMapping.BaseEndToStartGesture,
|
||||
overswipe: BaseOverswipeConfig,
|
||||
edgeHitWidth: null,
|
||||
isDetachable: true,
|
||||
},
|
||||
jumpForward: {
|
||||
...directionMapping.BaseStartToEndGesture,
|
||||
overswipe: BaseOverswipeConfig,
|
||||
edgeHitWidth: null,
|
||||
isDetachable: true,
|
||||
},
|
||||
pop: directionMapping.BaseEndToStartGesture,
|
||||
},
|
||||
animationInterpolators: {
|
||||
into: buildStyleInterpolator(directionMapping.FromTheStart),
|
||||
out: buildStyleInterpolator(directionMapping.ToTheEnd),
|
||||
},
|
||||
},
|
||||
VerticalUpSwipeJump: {
|
||||
...BaseConfig,
|
||||
gestures: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user