feat: introduce missing props from native-stack v5 (v6) #11958
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Follow-up for PR #11803 that introduced props from native-stack v5 to v7. Here, I'm migrating missing props also to native-stack v6. Take a look in original PR for more information about this change.
Test plan
You can test these props by checking how they affect screens after adjusting them in Native Stack example. Remember about setting
presentation
toformSheet
while usingsheetX
props.Some of the examples I've already prepared:
Using GestureResponseDistance on NewsFeed
This will enable changing the area of the gesture with a rectangle starting from the ~middle of the screen down to bottom.
NativeStack.tsx:139
Using sheet props on NewsFeed
This will change the NewsFeed screen to the form sheet with rounded corners and maximum height to the middle.
NativeStack.tsx:139