git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| import fetch, { Headers } from 'node-fetch' | |
| import { NativeModules as RNNativeModules } from "react-native" | |
| import fs from 'fs' | |
| //import { URL, URLSearchParams } from "whatwg-url" | |
| // jest react-native preset does not include fetch implementation in the node environment which RN is providing | |
| global.fetch = fetch | |
| global.Headers = Headers | |
| // In RN 0.59 environment these are not available, emulate for Jest/Node |
| // Top-level build file where you can add configuration options common to all sub-projects/modules. | |
| buildscript { | |
| ext { | |
| buildToolsVersion = "28.0.3" | |
| minSdkVersion = 21 | |
| compileSdkVersion = 28 | |
| targetSdkVersion = 27 | |
| supportLibVersion = "28.0.0" | |
| kotlinVersion = "1.3.0" |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream