-
-
Notifications
You must be signed in to change notification settings - Fork 532
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
refactor!: drop support for native-stack v5 #2373
Conversation
…r and add notes to README and CONTRIBUTION guide
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.
I've left few directions for you @maciekstosio, thanks for taking care of this!
README.md
Outdated
> [!CAUTION] | ||
> NativeStack has been moved from react-native-screens/native-stack to @react-navigation/native since version v6. With react-native-screens v4 native stack v5 (react-native-screens/native-stack) is deprecated and marked for removal in the upcoming minor release, react-native-screens will support only @react-navigation/native-stack v7. |
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.
> [!CAUTION] | |
> NativeStack has been moved from react-native-screens/native-stack to @react-navigation/native since version v6. With react-native-screens v4 native stack v5 (react-native-screens/native-stack) is deprecated and marked for removal in the upcoming minor release, react-native-screens will support only @react-navigation/native-stack v7. | |
> [!CAUTION] | |
> NativeStack has been moved from react-native-screens/native-stack to @react-navigation/native since version v6. With react-native-screens v4 native stack v5 (react-native-screens/native-stack) is deprecated and marked for removal in the upcoming minor release, react-native-screens v4 will support only @react-navigation/native-stack v7. |
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.
Changed in: 19532d8
native-stack/README.md
Outdated
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.
We want to restore this file now and put the same disclaimer in "caution style" there.
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.
Changed in: 4e35b31
native-stack/package.json
Outdated
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.
We need to restore this also
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.
Changed in: 4e35b31
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.
I think we're good to go.
@maciekstosio approve if you agree
Description
This PR intents to remove native-stack v5 implementation from the repository.Plan:
Remove public/native-stack
directoryRemove implementation insrc/native-stack/
directoryRemove all references in docs tonative-stack@v5
Remove all in-code references tonative-stack@v5
Caution
2 & 4 require some more work to be done, because screen transitions API code (integration with reanimated) makes use of API exposed bynative-stack@v5
.I need to figure out how to decouple these first.The plan has changed. We now intend to mark native-stack@v5 and deprecated and destined for removal with one of upcoming minor versions of the library after initial 4.0.0 release. For the time before removal native-stack@v5 will be shipped with few minor versions of screens v4 line, however it won't be supported and should be considered broken (and it is, if you're using native-header).
Important
This change breaks
TestScreenAnimation
as this test requires screen transition API which is not yet ported to v7.Changes
Mark types & factory functions of native stack v5 as deprecated and add comments explaining our approach.
Test code and steps to reproduce
N/A
Checklist