├── .babelrc.json ├── .eslintrc.json ├── .gitignore ├── .npmignore ├── .travis.yml ├── .vscode └── launch.json ├── LICENSE ├── README.md ├── __mocks__ └── index.js ├── dist ├── index.js ├── response.js └── util.js ├── example ├── Basic │ ├── .buckconfig │ ├── .eslintrc.js │ ├── .flowconfig │ ├── .gitattributes │ ├── .gitignore │ ├── .prettierrc.js │ ├── .watchmanconfig │ ├── __mocks__ │ │ └── index.js │ ├── __tests__ │ │ └── App-test.js │ ├── android │ │ ├── app │ │ │ ├── BUCK │ │ │ ├── build.gradle │ │ │ ├── build_defs.bzl │ │ │ ├── debug.keystore │ │ │ ├── proguard-rules.pro │ │ │ └── src │ │ │ │ ├── debug │ │ │ │ ├── AndroidManifest.xml │ │ │ │ └── java │ │ │ │ │ └── com │ │ │ │ │ └── basic │ │ │ │ │ └── ReactNativeFlipper.java │ │ │ │ └── main │ │ │ │ ├── AndroidManifest.xml │ │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── basic │ │ │ │ │ ├── MainActivity.java │ │ │ │ │ └── MainApplication.java │ │ │ │ └── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ └── values │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ ├── build.gradle │ │ ├── gradle.properties │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ ├── gradle-wrapper.jar │ │ │ │ └── gradle-wrapper.properties │ │ ├── gradlew │ │ ├── gradlew.bat │ │ └── settings.gradle │ ├── app.json │ ├── babel.config.js │ ├── index.js │ ├── ios │ │ ├── Basic-tvOS │ │ │ └── Info.plist │ │ ├── Basic-tvOSTests │ │ │ └── Info.plist │ │ ├── Basic.xcodeproj │ │ │ ├── project.pbxproj │ │ │ └── xcshareddata │ │ │ │ └── xcschemes │ │ │ │ ├── Basic-tvOS.xcscheme │ │ │ │ └── Basic.xcscheme │ │ ├── Basic.xcworkspace │ │ │ └── contents.xcworkspacedata │ │ ├── Basic │ │ │ ├── AppDelegate.h │ │ │ ├── AppDelegate.m │ │ │ ├── Images.xcassets │ │ │ │ ├── AppIcon.appiconset │ │ │ │ │ └── Contents.json │ │ │ │ └── Contents.json │ │ │ ├── Info.plist │ │ │ ├── LaunchScreen.storyboard │ │ │ └── main.m │ │ ├── BasicTests │ │ │ ├── BasicTests.m │ │ │ └── Info.plist │ │ ├── Podfile │ │ └── Podfile.lock │ ├── metro.config.js │ ├── package.json │ ├── src │ │ └── app.js │ └── yarn.lock └── WithMockJs │ ├── .buckconfig │ ├── .eslintrc.js │ ├── .flowconfig │ ├── .gitattributes │ ├── .gitignore │ ├── .prettierrc.js │ ├── .watchmanconfig │ ├── __mocks__ │ └── index.js │ ├── __tests__ │ └── App-test.js │ ├── android │ ├── app │ │ ├── BUCK │ │ ├── build.gradle │ │ ├── build_defs.bzl │ │ ├── debug.keystore │ │ ├── proguard-rules.pro │ │ └── src │ │ │ ├── debug │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── withmockjs │ │ │ │ └── ReactNativeFlipper.java │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── withmockjs │ │ │ │ ├── MainActivity.java │ │ │ │ └── MainApplication.java │ │ │ └── res │ │ │ ├── mipmap-hdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ └── values │ │ │ ├── strings.xml │ │ │ └── styles.xml │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── gradlew │ ├── gradlew.bat │ └── settings.gradle │ ├── app.json │ ├── babel.config.js │ ├── index.js │ ├── ios │ ├── Podfile │ ├── Podfile.lock │ ├── WithMockJs-tvOS │ │ └── Info.plist │ ├── WithMockJs-tvOSTests │ │ └── Info.plist │ ├── WithMockJs.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── WithMockJs-tvOS.xcscheme │ │ │ └── WithMockJs.xcscheme │ ├── WithMockJs.xcworkspace │ │ └── contents.xcworkspacedata │ ├── WithMockJs │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Images.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ │ └── Contents.json │ │ ├── Info.plist │ │ ├── LaunchScreen.storyboard │ │ └── main.m │ └── WithMockJsTests │ │ ├── Info.plist │ │ └── WithMockJsTests.m │ ├── metro.config.js │ ├── package.json │ ├── src │ └── app.js │ └── yarn.lock ├── index.js ├── package.json ├── src ├── index.js ├── response.js └── util.js ├── test ├── fallbackToNetwork.test.js ├── index.test.js └── util.test.js └── yarn.lock /.babelrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/.babelrc.json -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/.npmignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/.travis.yml -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/README.md -------------------------------------------------------------------------------- /__mocks__/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/__mocks__/index.js -------------------------------------------------------------------------------- /dist/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/dist/index.js -------------------------------------------------------------------------------- /dist/response.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/dist/response.js -------------------------------------------------------------------------------- /dist/util.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/dist/util.js -------------------------------------------------------------------------------- /example/Basic/.buckconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/.buckconfig -------------------------------------------------------------------------------- /example/Basic/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native-community', 4 | }; 5 | -------------------------------------------------------------------------------- /example/Basic/.flowconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/.flowconfig -------------------------------------------------------------------------------- /example/Basic/.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /example/Basic/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/.gitignore -------------------------------------------------------------------------------- /example/Basic/.prettierrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/.prettierrc.js -------------------------------------------------------------------------------- /example/Basic/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /example/Basic/__mocks__/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/__mocks__/index.js -------------------------------------------------------------------------------- /example/Basic/__tests__/App-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/__tests__/App-test.js -------------------------------------------------------------------------------- /example/Basic/android/app/BUCK: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/app/BUCK -------------------------------------------------------------------------------- /example/Basic/android/app/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/app/build.gradle -------------------------------------------------------------------------------- /example/Basic/android/app/build_defs.bzl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/app/build_defs.bzl -------------------------------------------------------------------------------- /example/Basic/android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/app/debug.keystore -------------------------------------------------------------------------------- /example/Basic/android/app/proguard-rules.pro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/app/proguard-rules.pro -------------------------------------------------------------------------------- /example/Basic/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/app/src/debug/AndroidManifest.xml -------------------------------------------------------------------------------- /example/Basic/android/app/src/debug/java/com/basic/ReactNativeFlipper.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/app/src/debug/java/com/basic/ReactNativeFlipper.java -------------------------------------------------------------------------------- /example/Basic/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/app/src/main/AndroidManifest.xml -------------------------------------------------------------------------------- /example/Basic/android/app/src/main/java/com/basic/MainActivity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/app/src/main/java/com/basic/MainActivity.java -------------------------------------------------------------------------------- /example/Basic/android/app/src/main/java/com/basic/MainApplication.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/app/src/main/java/com/basic/MainApplication.java -------------------------------------------------------------------------------- /example/Basic/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/Basic/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/Basic/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/Basic/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/Basic/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/Basic/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/Basic/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/Basic/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/Basic/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/Basic/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/Basic/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/app/src/main/res/values/strings.xml -------------------------------------------------------------------------------- /example/Basic/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/app/src/main/res/values/styles.xml -------------------------------------------------------------------------------- /example/Basic/android/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/build.gradle -------------------------------------------------------------------------------- /example/Basic/android/gradle.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/gradle.properties -------------------------------------------------------------------------------- /example/Basic/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /example/Basic/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/gradle/wrapper/gradle-wrapper.properties -------------------------------------------------------------------------------- /example/Basic/android/gradlew: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/gradlew -------------------------------------------------------------------------------- /example/Basic/android/gradlew.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/gradlew.bat -------------------------------------------------------------------------------- /example/Basic/android/settings.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/android/settings.gradle -------------------------------------------------------------------------------- /example/Basic/app.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/app.json -------------------------------------------------------------------------------- /example/Basic/babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/babel.config.js -------------------------------------------------------------------------------- /example/Basic/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/index.js -------------------------------------------------------------------------------- /example/Basic/ios/Basic-tvOS/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/ios/Basic-tvOS/Info.plist -------------------------------------------------------------------------------- /example/Basic/ios/Basic-tvOSTests/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/ios/Basic-tvOSTests/Info.plist -------------------------------------------------------------------------------- /example/Basic/ios/Basic.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/ios/Basic.xcodeproj/project.pbxproj -------------------------------------------------------------------------------- /example/Basic/ios/Basic.xcodeproj/xcshareddata/xcschemes/Basic-tvOS.xcscheme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/ios/Basic.xcodeproj/xcshareddata/xcschemes/Basic-tvOS.xcscheme -------------------------------------------------------------------------------- /example/Basic/ios/Basic.xcodeproj/xcshareddata/xcschemes/Basic.xcscheme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/ios/Basic.xcodeproj/xcshareddata/xcschemes/Basic.xcscheme -------------------------------------------------------------------------------- /example/Basic/ios/Basic.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/ios/Basic.xcworkspace/contents.xcworkspacedata -------------------------------------------------------------------------------- /example/Basic/ios/Basic/AppDelegate.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/ios/Basic/AppDelegate.h -------------------------------------------------------------------------------- /example/Basic/ios/Basic/AppDelegate.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/ios/Basic/AppDelegate.m -------------------------------------------------------------------------------- /example/Basic/ios/Basic/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/ios/Basic/Images.xcassets/AppIcon.appiconset/Contents.json -------------------------------------------------------------------------------- /example/Basic/ios/Basic/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/ios/Basic/Images.xcassets/Contents.json -------------------------------------------------------------------------------- /example/Basic/ios/Basic/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/ios/Basic/Info.plist -------------------------------------------------------------------------------- /example/Basic/ios/Basic/LaunchScreen.storyboard: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/ios/Basic/LaunchScreen.storyboard -------------------------------------------------------------------------------- /example/Basic/ios/Basic/main.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/ios/Basic/main.m -------------------------------------------------------------------------------- /example/Basic/ios/BasicTests/BasicTests.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/ios/BasicTests/BasicTests.m -------------------------------------------------------------------------------- /example/Basic/ios/BasicTests/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/ios/BasicTests/Info.plist -------------------------------------------------------------------------------- /example/Basic/ios/Podfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/ios/Podfile -------------------------------------------------------------------------------- /example/Basic/ios/Podfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/ios/Podfile.lock -------------------------------------------------------------------------------- /example/Basic/metro.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/metro.config.js -------------------------------------------------------------------------------- /example/Basic/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/package.json -------------------------------------------------------------------------------- /example/Basic/src/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/src/app.js -------------------------------------------------------------------------------- /example/Basic/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/Basic/yarn.lock -------------------------------------------------------------------------------- /example/WithMockJs/.buckconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/.buckconfig -------------------------------------------------------------------------------- /example/WithMockJs/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native-community', 4 | }; 5 | -------------------------------------------------------------------------------- /example/WithMockJs/.flowconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/.flowconfig -------------------------------------------------------------------------------- /example/WithMockJs/.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /example/WithMockJs/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/.gitignore -------------------------------------------------------------------------------- /example/WithMockJs/.prettierrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/.prettierrc.js -------------------------------------------------------------------------------- /example/WithMockJs/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /example/WithMockJs/__mocks__/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/__mocks__/index.js -------------------------------------------------------------------------------- /example/WithMockJs/__tests__/App-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/__tests__/App-test.js -------------------------------------------------------------------------------- /example/WithMockJs/android/app/BUCK: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/app/BUCK -------------------------------------------------------------------------------- /example/WithMockJs/android/app/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/app/build.gradle -------------------------------------------------------------------------------- /example/WithMockJs/android/app/build_defs.bzl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/app/build_defs.bzl -------------------------------------------------------------------------------- /example/WithMockJs/android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/app/debug.keystore -------------------------------------------------------------------------------- /example/WithMockJs/android/app/proguard-rules.pro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/app/proguard-rules.pro -------------------------------------------------------------------------------- /example/WithMockJs/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/app/src/debug/AndroidManifest.xml -------------------------------------------------------------------------------- /example/WithMockJs/android/app/src/debug/java/com/withmockjs/ReactNativeFlipper.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/app/src/debug/java/com/withmockjs/ReactNativeFlipper.java -------------------------------------------------------------------------------- /example/WithMockJs/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/app/src/main/AndroidManifest.xml -------------------------------------------------------------------------------- /example/WithMockJs/android/app/src/main/java/com/withmockjs/MainActivity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/app/src/main/java/com/withmockjs/MainActivity.java -------------------------------------------------------------------------------- /example/WithMockJs/android/app/src/main/java/com/withmockjs/MainApplication.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/app/src/main/java/com/withmockjs/MainApplication.java -------------------------------------------------------------------------------- /example/WithMockJs/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/WithMockJs/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/WithMockJs/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/WithMockJs/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/WithMockJs/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/WithMockJs/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/WithMockJs/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/WithMockJs/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/WithMockJs/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/WithMockJs/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /example/WithMockJs/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/app/src/main/res/values/strings.xml -------------------------------------------------------------------------------- /example/WithMockJs/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/app/src/main/res/values/styles.xml -------------------------------------------------------------------------------- /example/WithMockJs/android/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/build.gradle -------------------------------------------------------------------------------- /example/WithMockJs/android/gradle.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/gradle.properties -------------------------------------------------------------------------------- /example/WithMockJs/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /example/WithMockJs/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/gradle/wrapper/gradle-wrapper.properties -------------------------------------------------------------------------------- /example/WithMockJs/android/gradlew: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/gradlew -------------------------------------------------------------------------------- /example/WithMockJs/android/gradlew.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/gradlew.bat -------------------------------------------------------------------------------- /example/WithMockJs/android/settings.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/android/settings.gradle -------------------------------------------------------------------------------- /example/WithMockJs/app.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/app.json -------------------------------------------------------------------------------- /example/WithMockJs/babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/babel.config.js -------------------------------------------------------------------------------- /example/WithMockJs/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/index.js -------------------------------------------------------------------------------- /example/WithMockJs/ios/Podfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/ios/Podfile -------------------------------------------------------------------------------- /example/WithMockJs/ios/Podfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/ios/Podfile.lock -------------------------------------------------------------------------------- /example/WithMockJs/ios/WithMockJs-tvOS/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/ios/WithMockJs-tvOS/Info.plist -------------------------------------------------------------------------------- /example/WithMockJs/ios/WithMockJs-tvOSTests/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/ios/WithMockJs-tvOSTests/Info.plist -------------------------------------------------------------------------------- /example/WithMockJs/ios/WithMockJs.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/ios/WithMockJs.xcodeproj/project.pbxproj -------------------------------------------------------------------------------- /example/WithMockJs/ios/WithMockJs.xcodeproj/xcshareddata/xcschemes/WithMockJs-tvOS.xcscheme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/ios/WithMockJs.xcodeproj/xcshareddata/xcschemes/WithMockJs-tvOS.xcscheme -------------------------------------------------------------------------------- /example/WithMockJs/ios/WithMockJs.xcodeproj/xcshareddata/xcschemes/WithMockJs.xcscheme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/ios/WithMockJs.xcodeproj/xcshareddata/xcschemes/WithMockJs.xcscheme -------------------------------------------------------------------------------- /example/WithMockJs/ios/WithMockJs.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/ios/WithMockJs.xcworkspace/contents.xcworkspacedata -------------------------------------------------------------------------------- /example/WithMockJs/ios/WithMockJs/AppDelegate.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/ios/WithMockJs/AppDelegate.h -------------------------------------------------------------------------------- /example/WithMockJs/ios/WithMockJs/AppDelegate.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/ios/WithMockJs/AppDelegate.m -------------------------------------------------------------------------------- /example/WithMockJs/ios/WithMockJs/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/ios/WithMockJs/Images.xcassets/AppIcon.appiconset/Contents.json -------------------------------------------------------------------------------- /example/WithMockJs/ios/WithMockJs/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/ios/WithMockJs/Images.xcassets/Contents.json -------------------------------------------------------------------------------- /example/WithMockJs/ios/WithMockJs/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/ios/WithMockJs/Info.plist -------------------------------------------------------------------------------- /example/WithMockJs/ios/WithMockJs/LaunchScreen.storyboard: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/ios/WithMockJs/LaunchScreen.storyboard -------------------------------------------------------------------------------- /example/WithMockJs/ios/WithMockJs/main.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/ios/WithMockJs/main.m -------------------------------------------------------------------------------- /example/WithMockJs/ios/WithMockJsTests/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/ios/WithMockJsTests/Info.plist -------------------------------------------------------------------------------- /example/WithMockJs/ios/WithMockJsTests/WithMockJsTests.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/ios/WithMockJsTests/WithMockJsTests.m -------------------------------------------------------------------------------- /example/WithMockJs/metro.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/metro.config.js -------------------------------------------------------------------------------- /example/WithMockJs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/package.json -------------------------------------------------------------------------------- /example/WithMockJs/src/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/src/app.js -------------------------------------------------------------------------------- /example/WithMockJs/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/example/WithMockJs/yarn.lock -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./dist'); 2 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/package.json -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/src/index.js -------------------------------------------------------------------------------- /src/response.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/src/response.js -------------------------------------------------------------------------------- /src/util.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/src/util.js -------------------------------------------------------------------------------- /test/fallbackToNetwork.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/test/fallbackToNetwork.test.js -------------------------------------------------------------------------------- /test/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/test/index.test.js -------------------------------------------------------------------------------- /test/util.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/test/util.test.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WhatAKitty/react-native-fetch-mock/HEAD/yarn.lock --------------------------------------------------------------------------------