react-native-test-app provides a test app for all supported platforms as a package
Перейти к файлу
Rohan Prasad 2a92d0af0c
fix: add/show default value to init command (#1101)
2022-09-12 09:50:05 +00:00
.ccache ci: cache build outputs to speed up builds (#754) 2022-02-22 21:07:45 +01:00
.github chore(deps): update actions/setup-java action to v3.5.0 (#1110) 2022-09-12 08:42:57 +00:00
.vscode feat: validate `app.json` at build time (#653) 2021-12-17 19:52:15 +01:00
.yarn/releases chore(deps): update yarn to v3.1.1 (#689) 2022-01-05 09:17:07 +01:00
android chore(deps): update dependency org.mockito:mockito-inline to v4.8.0 (#1114) 2022-09-12 08:54:11 +00:00
common fix: ignore exception thrown when `AppRegistry` is missing (#763) 2022-02-14 11:35:19 +01:00
example fix(deps): update dependency de.undercouch:gradle-download-task to v5.1.3 (#1109) 2022-09-12 08:38:55 +00:00
ios fix(ios): allow apps to run as-is on Apple silicon Macs (#1073) 2022-08-23 20:37:54 +02:00
macos fix(macos): fix `mouseDown` always opening React menu (#1040) 2022-08-07 20:19:41 +02:00
scripts fix: add/show default value to init command (#1101) 2022-09-12 09:50:05 +00:00
test fix(deps): update dependency de.undercouch:gradle-download-task to v5.1.2 (#1070) 2022-08-29 09:02:13 +00:00
windows fix(windows): `validate-manifest` might find the wrong `app.json` (#1006) 2022-07-21 14:57:09 +02:00
.clang-format fix(ios): replace QRCodeReader with custom implementation (#677) 2022-01-03 12:49:57 +01:00
.editorconfig Add EditorConfig and format all files (#70) 2020-04-18 14:26:52 +02:00
.gitattributes chore: upgrade to Yarn 3 (#429) 2021-09-17 12:32:27 +00:00
.gitignore fix(android): use CMake instead of ndk-build when on 0.70 (#1088) 2022-09-05 09:58:36 +02:00
.npmrc docs: prefer `npx` over `yarn` to be more package manager agnostic (#886) 2022-04-29 13:07:36 +02:00
.rubocop.yml fix(macos): prepare support for react-native-macos 0.66 (#704) 2022-01-18 12:32:27 +00:00
.swiftlint.yml chore(Apple): Use SwiftFormat (#245) 2020-11-16 11:20:09 +01:00
.yarnrc.yml chore(deps): update yarn to v3.1.1 (#689) 2022-01-05 09:17:07 +01:00
Brewfile chore: start using Temurin OpenJDK 11 (#524) 2021-09-27 10:43:35 +02:00
CODE_OF_CONDUCT.md Initial CODE_OF_CONDUCT.md commit 2020-01-20 05:22:23 -08:00
CONTRIBUTING.md chore: don't publish internal scripts (#954) 2022-06-13 11:34:27 +02:00
Gemfile fix(macos): fix "no account for team" and missing provisioning profile (#558) 2021-10-18 10:15:35 +02:00
Gemfile.lock chore(deps): update dependency rubocop-minitest to v0.22.0 (#1112) 2022-09-12 08:40:33 +00:00
LICENSE Initial LICENSE commit 2020-01-20 05:22:24 -08:00
README.md fix: declare support for react-native 0.70 (#997) 2022-08-23 13:51:15 +02:00
ReactTestApp-DevSupport.podspec fix(apple): bump C++ language standard 2022-01-26 16:45:48 +01:00
SECURITY.md Initial SECURITY.md commit 2020-01-20 05:22:25 -08:00
package.json chore(deps): update dependency eslint-plugin-jest to v27 (#1085) 2022-08-29 09:11:17 +00:00
react-native.config.js docs: remove copyright header from all files (#667) 2022-01-05 13:15:59 +01:00
schema.json feat: add ability to set app icons (#1022) 2022-07-28 15:01:45 +02:00
test-app.gradle chore(android): remove unused code (#1052) 2022-08-19 09:33:03 +02:00
test_app.rb docs: remove copyright header from all files (#667) 2022-01-05 13:15:59 +01:00
tsconfig.json chore: enable more TypeScript checks (#494) 2021-09-16 01:00:26 +02:00
yarn.lock chore(deps): update dependency eslint-plugin-jest to v27.0.4 (#1106) 2022-09-12 11:01:38 +02:00

README.md

React Native Test App

Contributions Welcome Open in Visual Studio Code build npm version

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 learn how RNTA is used at Microsoft, and see a demo of how to add it to an existing library - you can watch the "Improve all the repos – exploring Microsofts DevExp" talk by @kelset and @tido64 from React Native Europe 2021.

In the wiki, you can read more about the motivation and the design of this tool.

Quick Start

If you want to migrate an existing test app for a library, follow the dedicated guide in the wiki.

Install react-native-test-app as a dev dependency. We will use the wizard to generate your test app:

yarn add react-native-test-app --dev
yarn init-test-app

In this example, we will create a project named "sample" in sample with test 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

Run yarn inside the new project folder:

cd sample
yarn

Once the dependencies are installed, follow the platform specific instructions in the wiki.

Configuring the Test App

All configuration of the test app is done via app.json (otherwise known as the manifest). You can learn more about that in the dedicated wiki section.

Additionally, you can find platform specific documentation below:

Known Issues

For a list of known issues and workarounds, please refer to the Troubleshooting wiki.

Contributing

Thank you for your interest in this project! We welcome all contributions and suggestions!

Take a look at CONTRIBUTING.md for details.

License

react-native-test-app is MIT licensed.