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 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
β 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.
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-masked-view • react-native-menu • react-native-netinfo • react-native-segmented-control • 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.