Skip to content
Example using Unmock to test asynchronous API calls in React Native
TypeScript Objective-C Ruby Java Python JavaScript
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__tests__ Fix test describe name. Nov 1, 2019
android First commit. Oct 10, 2019
ios First commit. Oct 10, 2019
src Article. (#2) Oct 23, 2019
.buckconfig First commit. Oct 10, 2019
.eslintrc.js First commit. Oct 10, 2019
.flowconfig First commit. Oct 10, 2019
.gitattributes First commit. Oct 10, 2019
.gitignore
.prettierrc.js First commit. Oct 10, 2019
.watchmanconfig First commit. Oct 10, 2019
ARTICLE.md Fix typo. Oct 23, 2019
LICENSE First commit. Oct 10, 2019
README.md Show cat facts instead of Chuck Norris. (#1) Oct 17, 2019
app.json First commit. Oct 10, 2019
babel.config.js First commit. Oct 10, 2019
index.js First commit. Oct 10, 2019
metro.config.js First commit. Oct 10, 2019
package.json Add missing types. Oct 10, 2019
screenshot.png Show cat facts instead of Chuck Norris. (#1) Oct 17, 2019
setup-tests.js First commit. Oct 10, 2019
yarn.lock Add missing types. Oct 10, 2019

README.md

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
You can’t perform that action at this time.