react-navigation / react-navigation

Routing and navigation for your React Native apps
https://reactnavigation.org
23.3k stars 4.97k forks source link

feat: introduce missing props from native-stack v5 (v6) #11958

Open tboba opened 3 weeks ago

tboba commented 3 weeks ago

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 to formSheet while using sheetX 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` ```tsx ```
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` ```tsx ```
github-actions[bot] commented 3 weeks ago

The Expo app for the example from this branch is ready!

https://expo.dev/@react-navigation/react-navigation-example?serviceType=eas&distribution=expo-go&scheme=exp+react-navigation-example&channel=pr-11958&sdkVersion=48.0.0