Welcome to the React Native Testing Library (RNTL) Cookbook! This app is designed to provide developers with a collection of best practices, ready-made recipes, and tips & tricks to help you effectively test your React Native applications. Whether you’re just starting out with testing or looking to deepen your skills, this cookbook offers something for everyone.
Each recipe described in the Cookbook should have a corresponding code example screen in this repo.
Note:
Since examples will showcase usage of different dependencies, the dependencies in package.json
file will grow much larger that in a normal React Native. This is fine 🐶☕️🔥.
- Clone the repo
git clone git@github.com:callstack/react-native-testing-library.git
- Go to the
examples/cookbook
directorycd examples/cookbook
- Install dependencies
yarn
- Run the app
yarn start
- Run the app either on iOS or Android by clicking on
i
ora
in the terminal.
We invite all developers, from beginners to experts, to contribute your own recipes! If you have a clever solution, best practice, or useful tip, we encourage you to:
- Submit a Pull Request with your recipe.
- Join the conversation on GitHub here to discuss ideas, ask questions, or provide feedback.
Home Screen | Phonebook with Net. Req. Example |
---|---|
![]() |
![]() |