-
-
Notifications
You must be signed in to change notification settings - Fork 514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(iOS): add shadow to custom push pop transitions #2239
Changes from 2 commits
5c864c4
138f6d7
b7055c5
6229afb
577dfc0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -202,6 +202,7 @@ const RouteView = ({ | |||||
let { | ||||||
customAnimationOnSwipe, | ||||||
fullScreenSwipeEnabled, | ||||||
fullScreenSwipeShadowEnabled, | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
gestureResponseDistance, | ||||||
stackAnimation, | ||||||
stackPresentation = 'push', | ||||||
|
@@ -216,6 +217,9 @@ const RouteView = ({ | |||||
if (fullScreenSwipeEnabled === undefined) { | ||||||
fullScreenSwipeEnabled = true; | ||||||
} | ||||||
if (fullScreenSwipeShadowEnabled === undefined) { | ||||||
fullScreenSwipeShadowEnabled = true; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you do it like this, isn't it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was thinking the same but There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe it would be better to remove this altogether? Now I see that this is only set when There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this prop is not dependent on any other props so we can remove it? |
||||||
} | ||||||
if (customAnimationOnSwipe === undefined) { | ||||||
customAnimationOnSwipe = true; | ||||||
} | ||||||
|
@@ -294,6 +298,7 @@ const RouteView = ({ | |||||
customAnimationOnSwipe={customAnimationOnSwipe} | ||||||
freezeOnBlur={freezeOnBlur} | ||||||
fullScreenSwipeEnabled={fullScreenSwipeEnabled} | ||||||
fullScreenSwipeShadowEnabled={fullScreenSwipeShadowEnabled} | ||||||
hideKeyboardOnSwipe={hideKeyboardOnSwipe} | ||||||
homeIndicatorHidden={homeIndicatorHidden} | ||||||
gestureEnabled={isAndroid ? false : gestureEnabled} | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for other occourences of this comment.