React Native Test App (RNTA) provides test apps for all platforms as a package. It handles the native bits for you so you can focus on what's important: your product.
If you want to migrate an existing test app for a library, follow the dedicated guide in the wiki.
You can generate a new project using npx:
npx --package react-native-test-app@latest initIn this example, we will create a project named "sample" in sample with apps
for all platforms:
✔ What is the name of your test app? … sample
? Which platforms do you need test apps for? ›
Instructions:
↑/↓: Highlight option
←/→/[space]: Toggle selection
a: Toggle all
enter/return: Complete answer
◉ Android
◉ iOS
◉ macOS
◯ visionOS (Experimental)
◉ Windows
✔ Where should we create the new project? … sample
Install npm dependencies inside the new project folder:
Yarn:
cd sample
yarnnpm:
cd sample
npm installOnce the dependencies are installed, follow the platform specific instructions in the wiki.
microsoft/fluentui-react-native • microsoft/rnx-kit • BabylonReactNative • callstack/repack • lottie-react-native • react-native-add-calendar-event • react-native-apple-authentication • react-native-async-storage • react-native-blur • react-native-clipboard • react-native-datetimepicker • react-native-google-signin • react-native-image-editor • react-native-keychain • react-native-masked-view • react-native-menu • react-native-netinfo • react-native-pager-view • react-native-segmented-control • react-native-video • react-native-webview • realm-js • shopify/restyle • sparkfabrik-react-native-idfa-aaid • and many more…
Are you using RNTA? Submit a PR to add it to the list!
For a list of known issues and workarounds, please refer to the Troubleshooting wiki.
Thank you for your interest in this project! We welcome all contributions and suggestions!
Take a look at CONTRIBUTING.md for details.
react-native-test-app is MIT licensed.