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.
- Quick Start β‘
- Migrate an Existing Test App π
- Configuring the Test App π
- Upgrading the Test App π
- Learn More π
- Libraries Using RNTA π
- Known Issues
β οΈ - Contributing π€
- License π
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 init
In 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
yarn
npm:
cd sample
npm install
Once the dependencies are installed, follow the platform specific instructions in the wiki.
- π£οΈ If you want to learn how RNTA is used at Microsoft, check out the following
talks:
- "Improve all the repos β exploring Microsoftβs DevExp" by @kelset and @tido64 from React Native Europe 2021.
- "Our Journey of Making React Native a Preferred Choice" by @kelset and @tido64 from React Native Europe 2023.
- π In the wiki, you can read more about the motivation and the design of this tool.
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.