Description
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.