software-mansion/react-native-screens — reverse-engineered prompt
Reverse engineered prompt
Build me a React Native library that lets navigation libraries render screens using real native screen containers instead of regular views, so apps feel faster and more reliable when moving between stack, tab, and drawer screens.
It should be written with TypeScript for the public API, include the native pieces needed for iOS, Android, tvOS, visionOS, Windows, and web, and work smoothly as a dependency inside React Navigation and Expo projects rather than as a standalone app. Please include a small example app or demo setup that shows a few screens opening, closing, and keeping state correctly.
Make sure install and setup are documented clearly, especially the Android restart crash prevention step, iOS pod setup, and notes for the newer React Native Fabric architecture. Add sensible tests, linting, and basic contributor docs so someone can maintain it later.
Look up current React Native and React Navigation docs online if you need to.
Want more depth? Deep Reverse