-
Notifications
You must be signed in to change notification settings - Fork 272
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
RFC: React 19 support #1593
Comments
Let's open the |
That sounds like a good plan! Do you know more about RTR's deprecation? Is there already an alternative to react test renderer? If not do we have any idea of when one will be available? If I understand correctly, based on the tests you did with react 18.3 we're not using that will be removed or deprecated but this does not guarantee that everything will still work. I suppose we'd need a version of react native compatible with react 19 to do more tests? |
React 18.3 seems to be the same as 18.2 + warnings about stuff removed/deprecated in React 19. You are absolutely right that we will need a matching RN version, I suspect that there will be alpha/beta/RC versions before the actual release. Regarding RTR replacement, there is not concrete info yet. |
The plan sounds great! |
I was about to open a separate issue for this, but I found this one. I hope it's okay to report this here. At least one breaking change in React 19 seems to be that I noticed that This module should either begin importing from |
@yungsters fortunately we don't expose shallow rendering publicly for a long time now. The file you mentioned was for internal use for |
Closing in favor of #1698 |
React team recently released React 19 beta which brings some changes that might affect RNTL. In this issue I want to discuss how does that affect RNTL.
Deprecation of React Test Render
The upgrade guide mentions deprecation of React Test Renderer. First of all this is deprecation, not removal, so our core dependency will continue to work so some time. Callstack be working with Meta to find suitable solution to that case. It's worth noting that RNTL is indicated as recommended testing solution for React Native in the same migration guide.
React 18.3.x
React team released also React 18.3 which should trigger warnings for features being deprecated/removed by React 19. I've run RNTL testing suite, and all test pass without warning.
Versioning strategy
Since RNTL API is relatively mature, and we currently do not plan to release any large new features, I think that we should keep RNTL v12 for React 18 (and earlier) support, while making RNTL v13 with support just for React 19. By doing so, we could remove legacy code supporting React 16, 17 & 18 and focus on just React 19.
We should introduce versioned documentation to allow users of both React 18 and 19 to find relevant info. Otherwise, the API surface will probably stay the same and changes be mostly internal.
Transition timeline
The blog posts does not mention any timeline for React 19 transition for React Native. It is however safe to assume that such transition will happen at some stage around or after React 19 stable release.
@thymikee @pierrezimmermannbam @MattAgn @AugustinLF wdyt?
The text was updated successfully, but these errors were encountered: