/unmock-react-native-example

Example using Unmock to test asynchronous API calls in React Native

Primary LanguageTypeScriptMIT LicenseMIT

Unmock React Native example

Example of using unmock for testing asynchronous data fetching in a React Native application. See __tests__/App.test.tsx.

This project was created with react-native CLI.

Cat facts in action

drawing

Instructions

Install dependencies:

yarn

Run tests:

yarn test

To run the app in an Android Virtual Device (AVD), install and start the AVD and run

yarn android