├── .npmignore
├── examples
├── Login
│ ├── .watchmanconfig
│ ├── .gitattributes
│ ├── .babelrc
│ ├── README.md
│ ├── app.json
│ ├── android
│ │ ├── settings.gradle
│ │ ├── app
│ │ │ ├── src
│ │ │ │ └── main
│ │ │ │ │ ├── res
│ │ │ │ │ ├── values
│ │ │ │ │ │ ├── strings.xml
│ │ │ │ │ │ └── styles.xml
│ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ └── mipmap-xxhdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── java
│ │ │ │ │ └── com
│ │ │ │ │ │ └── examples
│ │ │ │ │ │ ├── MainActivity.java
│ │ │ │ │ │ └── MainApplication.java
│ │ │ │ │ └── AndroidManifest.xml
│ │ │ ├── BUCK
│ │ │ ├── proguard-rules.pro
│ │ │ └── build.gradle
│ │ ├── keystores
│ │ │ ├── debug.keystore.properties
│ │ │ └── BUCK
│ │ ├── gradle
│ │ │ └── wrapper
│ │ │ │ ├── gradle-wrapper.jar
│ │ │ │ └── gradle-wrapper.properties
│ │ ├── build.gradle
│ │ ├── gradle.properties
│ │ ├── gradlew.bat
│ │ └── gradlew
│ ├── .buckconfig
│ ├── ios
│ │ ├── examples
│ │ │ ├── AppDelegate.h
│ │ │ ├── main.m
│ │ │ ├── Images.xcassets
│ │ │ │ └── AppIcon.appiconset
│ │ │ │ │ └── Contents.json
│ │ │ ├── AppDelegate.m
│ │ │ ├── Info.plist
│ │ │ └── Base.lproj
│ │ │ │ └── LaunchScreen.xib
│ │ ├── examplesTests
│ │ │ ├── Info.plist
│ │ │ └── examplesTests.m
│ │ ├── examples-tvOSTests
│ │ │ └── Info.plist
│ │ ├── examples-tvOS
│ │ │ └── Info.plist
│ │ └── examples.xcodeproj
│ │ │ └── xcshareddata
│ │ │ └── xcschemes
│ │ │ ├── examples.xcscheme
│ │ │ └── examples-tvOS.xcscheme
│ ├── package.json
│ ├── .gitignore
│ ├── .flowconfig
│ ├── index.ios.js
│ └── index.android.js
├── Ripple
│ ├── .watchmanconfig
│ ├── .gitattributes
│ ├── .babelrc
│ ├── app.json
│ ├── android
│ │ ├── settings.gradle
│ │ ├── app
│ │ │ ├── src
│ │ │ │ └── main
│ │ │ │ │ ├── res
│ │ │ │ │ ├── values
│ │ │ │ │ │ ├── strings.xml
│ │ │ │ │ │ └── styles.xml
│ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ └── mipmap-xxhdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── java
│ │ │ │ │ └── com
│ │ │ │ │ │ └── ripple
│ │ │ │ │ │ ├── MainActivity.java
│ │ │ │ │ │ └── MainApplication.java
│ │ │ │ │ └── AndroidManifest.xml
│ │ │ ├── BUCK
│ │ │ ├── proguard-rules.pro
│ │ │ └── build.gradle
│ │ ├── keystores
│ │ │ ├── debug.keystore.properties
│ │ │ └── BUCK
│ │ ├── gradle
│ │ │ └── wrapper
│ │ │ │ ├── gradle-wrapper.jar
│ │ │ │ └── gradle-wrapper.properties
│ │ ├── build.gradle
│ │ ├── gradle.properties
│ │ ├── gradlew.bat
│ │ └── gradlew
│ ├── README.md
│ ├── .buckconfig
│ ├── ios
│ │ ├── Ripple
│ │ │ ├── AppDelegate.h
│ │ │ ├── main.m
│ │ │ ├── Images.xcassets
│ │ │ │ └── AppIcon.appiconset
│ │ │ │ │ └── Contents.json
│ │ │ ├── AppDelegate.m
│ │ │ ├── Info.plist
│ │ │ └── Base.lproj
│ │ │ │ └── LaunchScreen.xib
│ │ ├── RippleTests
│ │ │ ├── Info.plist
│ │ │ └── RippleTests.m
│ │ ├── Ripple-tvOSTests
│ │ │ └── Info.plist
│ │ ├── Ripple-tvOS
│ │ │ └── Info.plist
│ │ └── Ripple.xcodeproj
│ │ │ └── xcshareddata
│ │ │ └── xcschemes
│ │ │ ├── Ripple.xcscheme
│ │ │ └── Ripple-tvOS.xcscheme
│ ├── package.json
│ ├── .gitignore
│ ├── .flowconfig
│ ├── index.ios.js
│ └── index.android.js
└── doc
│ ├── button.gif
│ ├── rippleios.gif
│ └── rippleandroid.gif
├── src
├── Ripple
│ ├── index.js
│ └── Ripple.js
├── Login
│ ├── index.js
│ ├── View.js
│ ├── Button.js
│ └── Overlay.js
└── utils.js
├── .gitignore
├── index.js
├── scripts.js
├── LICENSE
├── package.json
├── README.md
└── yarn.lock
/.npmignore:
--------------------------------------------------------------------------------
1 | examples
2 | scripts.js
--------------------------------------------------------------------------------
/examples/Login/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/examples/Ripple/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/examples/Login/.gitattributes:
--------------------------------------------------------------------------------
1 | *.pbxproj -text
2 |
--------------------------------------------------------------------------------
/examples/Ripple/.gitattributes:
--------------------------------------------------------------------------------
1 | *.pbxproj -text
2 |
--------------------------------------------------------------------------------
/examples/Login/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["react-native"]
3 | }
--------------------------------------------------------------------------------
/examples/Ripple/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["react-native"]
3 | }
--------------------------------------------------------------------------------
/src/Ripple/index.js:
--------------------------------------------------------------------------------
1 | export { default } from './Ripple';
2 |
--------------------------------------------------------------------------------
/examples/Login/README.md:
--------------------------------------------------------------------------------
1 | # Example
2 |
3 | 
--------------------------------------------------------------------------------
/examples/Login/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "examples",
3 | "displayName": "examples"
4 | }
--------------------------------------------------------------------------------
/examples/Ripple/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Ripple",
3 | "displayName": "Ripple"
4 | }
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Created by .ignore support plugin (hsz.mobi)
2 | .idea
3 | node_modules
4 | __tests__
--------------------------------------------------------------------------------
/examples/Login/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'examples'
2 |
3 | include ':app'
4 |
--------------------------------------------------------------------------------
/examples/Ripple/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'Ripple'
2 |
3 | include ':app'
4 |
--------------------------------------------------------------------------------
/examples/Ripple/README.md:
--------------------------------------------------------------------------------
1 | # Example
2 |
3 | 
4 | 
--------------------------------------------------------------------------------
/examples/doc/button.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zecaptus/react-native-md-motion-buttons/HEAD/examples/doc/button.gif
--------------------------------------------------------------------------------
/examples/doc/rippleios.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zecaptus/react-native-md-motion-buttons/HEAD/examples/doc/rippleios.gif
--------------------------------------------------------------------------------
/examples/doc/rippleandroid.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zecaptus/react-native-md-motion-buttons/HEAD/examples/doc/rippleandroid.gif
--------------------------------------------------------------------------------
/examples/Login/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | examples
3 |
4 |
--------------------------------------------------------------------------------
/examples/Ripple/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Ripple
3 |
4 |
--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
1 | import * as Login from './src/Login';
2 | import Ripple from './src/Ripple';
3 |
4 | module.exports = {
5 | Login, Ripple
6 | };
--------------------------------------------------------------------------------
/examples/Login/.buckconfig:
--------------------------------------------------------------------------------
1 |
2 | [android]
3 | target = Google Inc.:Google APIs:23
4 |
5 | [maven_repositories]
6 | central = https://repo1.maven.org/maven2
7 |
--------------------------------------------------------------------------------
/examples/Ripple/.buckconfig:
--------------------------------------------------------------------------------
1 |
2 | [android]
3 | target = Google Inc.:Google APIs:23
4 |
5 | [maven_repositories]
6 | central = https://repo1.maven.org/maven2
7 |
--------------------------------------------------------------------------------
/src/Login/index.js:
--------------------------------------------------------------------------------
1 | export { default as Button } from './Button';
2 | export { default as Overlay } from './Overlay';
3 | export { default as View } from './View';
4 |
--------------------------------------------------------------------------------
/examples/Login/android/keystores/debug.keystore.properties:
--------------------------------------------------------------------------------
1 | key.store=debug.keystore
2 | key.alias=androiddebugkey
3 | key.store.password=android
4 | key.alias.password=android
5 |
--------------------------------------------------------------------------------
/examples/Ripple/android/keystores/debug.keystore.properties:
--------------------------------------------------------------------------------
1 | key.store=debug.keystore
2 | key.alias=androiddebugkey
3 | key.store.password=android
4 | key.alias.password=android
5 |
--------------------------------------------------------------------------------
/examples/Login/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zecaptus/react-native-md-motion-buttons/HEAD/examples/Login/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/examples/Ripple/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zecaptus/react-native-md-motion-buttons/HEAD/examples/Ripple/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/examples/Login/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zecaptus/react-native-md-motion-buttons/HEAD/examples/Login/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/examples/Login/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zecaptus/react-native-md-motion-buttons/HEAD/examples/Login/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/examples/Login/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zecaptus/react-native-md-motion-buttons/HEAD/examples/Login/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/examples/Login/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zecaptus/react-native-md-motion-buttons/HEAD/examples/Login/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/examples/Ripple/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zecaptus/react-native-md-motion-buttons/HEAD/examples/Ripple/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/examples/Ripple/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zecaptus/react-native-md-motion-buttons/HEAD/examples/Ripple/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/examples/Ripple/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zecaptus/react-native-md-motion-buttons/HEAD/examples/Ripple/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/examples/Ripple/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zecaptus/react-native-md-motion-buttons/HEAD/examples/Ripple/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/examples/Login/android/keystores/BUCK:
--------------------------------------------------------------------------------
1 | keystore(
2 | name = "debug",
3 | properties = "debug.keystore.properties",
4 | store = "debug.keystore",
5 | visibility = [
6 | "PUBLIC",
7 | ],
8 | )
9 |
--------------------------------------------------------------------------------
/examples/Ripple/android/keystores/BUCK:
--------------------------------------------------------------------------------
1 | keystore(
2 | name = "debug",
3 | properties = "debug.keystore.properties",
4 | store = "debug.keystore",
5 | visibility = [
6 | "PUBLIC",
7 | ],
8 | )
9 |
--------------------------------------------------------------------------------
/examples/Login/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/examples/Ripple/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/examples/Login/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
6 |
--------------------------------------------------------------------------------
/examples/Ripple/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
6 |
--------------------------------------------------------------------------------
/src/utils.js:
--------------------------------------------------------------------------------
1 | import { Easing as Ease } from 'react-native';
2 |
3 | export const Easing = {
4 | Standard : Ease.bezier(0.4, 0.0, 0.2, 1),
5 | Deceleration : Ease.bezier(0.0, 0.0, 0.2, 1),
6 | Acceleration : Ease.bezier(0.4, 0.0, 1, 1),
7 | Sharp : Ease.bezier(0.4, 0.0, 0.6, 1)
8 | };
--------------------------------------------------------------------------------
/examples/Ripple/android/app/src/main/java/com/ripple/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.ripple;
2 |
3 | import com.facebook.react.ReactActivity;
4 |
5 | public class MainActivity extends ReactActivity {
6 |
7 | /**
8 | * Returns the name of the main component registered from JavaScript.
9 | * This is used to schedule rendering of the component.
10 | */
11 | @Override
12 | protected String getMainComponentName() {
13 | return "Ripple";
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/examples/Login/android/app/src/main/java/com/examples/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.examples;
2 |
3 | import com.facebook.react.ReactActivity;
4 |
5 | public class MainActivity extends ReactActivity {
6 |
7 | /**
8 | * Returns the name of the main component registered from JavaScript.
9 | * This is used to schedule rendering of the component.
10 | */
11 | @Override
12 | protected String getMainComponentName() {
13 | return "examples";
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/examples/Login/ios/examples/AppDelegate.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 |
12 | @interface AppDelegate : UIResponder
13 |
14 | @property (nonatomic, strong) UIWindow *window;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/examples/Ripple/ios/Ripple/AppDelegate.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 |
12 | @interface AppDelegate : UIResponder
13 |
14 | @property (nonatomic, strong) UIWindow *window;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/examples/Ripple/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Ripple",
3 | "version": "0.0.1",
4 | "private": true,
5 | "scripts": {
6 | "start": "node node_modules/react-native/local-cli/cli.js start",
7 | "test": "jest"
8 | },
9 | "dependencies": {
10 | "react": "16.0.0-alpha.6",
11 | "react-native": "0.43.4",
12 | "react-native-md-motion-buttons": "file:../../"
13 | },
14 | "devDependencies": {
15 | "babel-jest": "19.0.0",
16 | "babel-preset-react-native": "1.9.1",
17 | "jest": "19.0.2",
18 | "react-test-renderer": "16.0.0-alpha.6"
19 | },
20 | "jest": {
21 | "preset": "react-native"
22 | }
23 | }
--------------------------------------------------------------------------------
/examples/Login/ios/examples/main.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 |
12 | #import "AppDelegate.h"
13 |
14 | int main(int argc, char * argv[]) {
15 | @autoreleasepool {
16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/examples/Login/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "examples",
3 | "version": "0.0.1",
4 | "private": true,
5 | "scripts": {
6 | "start": "node node_modules/react-native/local-cli/cli.js start",
7 | "test": "jest"
8 | },
9 | "dependencies": {
10 | "react": "16.0.0-alpha.6",
11 | "react-native": "0.43.3",
12 | "react-native-md-motion-buttons": "file:../../"
13 | },
14 | "devDependencies": {
15 | "babel-jest": "19.0.0",
16 | "babel-preset-react-native": "1.9.1",
17 | "jest": "19.0.2",
18 | "react-test-renderer": "16.0.0-alpha.6"
19 | },
20 | "jest": {
21 | "preset": "react-native"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/examples/Ripple/ios/Ripple/main.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 |
12 | #import "AppDelegate.h"
13 |
14 | int main(int argc, char * argv[]) {
15 | @autoreleasepool {
16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/examples/Login/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.2.3'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | mavenLocal()
18 | jcenter()
19 | maven {
20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
21 | url "$rootDir/../node_modules/react-native/android"
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/examples/Ripple/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.2.3'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | mavenLocal()
18 | jcenter()
19 | maven {
20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
21 | url "$rootDir/../node_modules/react-native/android"
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/examples/Login/ios/examples/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | }
33 | ],
34 | "info" : {
35 | "version" : 1,
36 | "author" : "xcode"
37 | }
38 | }
--------------------------------------------------------------------------------
/examples/Ripple/ios/Ripple/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | }
33 | ],
34 | "info" : {
35 | "version" : 1,
36 | "author" : "xcode"
37 | }
38 | }
--------------------------------------------------------------------------------
/scripts.js:
--------------------------------------------------------------------------------
1 | const spawn = require('child_process').spawn;
2 | const cpx = require('cpx');
3 |
4 | const script = process.argv[2];
5 | const arg = process.argv[3] || 'Login';
6 |
7 | if(script === 'watch') {
8 | const watcher = cpx.watch('./src/**/*.js', `examples/${arg}/node_modules/${process.env.npm_package_name}/src`);
9 |
10 | watcher.on("watch-ready", () => { console.log('ready')});
11 | watcher.on("remove", e => { console.log(e.path, '- removed')});
12 | watcher.on('copy', e => {
13 | console.log(e.srcPath, ' => ', e.dstPath);
14 | });
15 |
16 | }else {
17 | let cmd = 'npm';
18 | let params = ['run', script];
19 |
20 | if (script === 'ios' || script === 'android') {
21 | cmd = 'react-native';
22 | params = [`run-${script}`];
23 | }
24 |
25 | spawn(cmd, params, {cwd: `./examples/${arg}`, stdio: 'inherit'});
26 | }
--------------------------------------------------------------------------------
/examples/Ripple/ios/RippleTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/examples/Login/ios/examplesTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/examples/Ripple/ios/Ripple-tvOSTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/examples/Login/ios/examples-tvOSTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/examples/Login/android/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
20 | android.useDeprecatedNdk=true
21 |
--------------------------------------------------------------------------------
/examples/Ripple/android/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
20 | android.useDeprecatedNdk=true
21 |
--------------------------------------------------------------------------------
/examples/Login/.gitignore:
--------------------------------------------------------------------------------
1 | # OSX
2 | #
3 | .DS_Store
4 |
5 | # Xcode
6 | #
7 | build/
8 | *.pbxuser
9 | !default.pbxuser
10 | *.mode1v3
11 | !default.mode1v3
12 | *.mode2v3
13 | !default.mode2v3
14 | *.perspectivev3
15 | !default.perspectivev3
16 | xcuserdata
17 | *.xccheckout
18 | *.moved-aside
19 | DerivedData
20 | *.hmap
21 | *.ipa
22 | *.xcuserstate
23 | project.xcworkspace
24 |
25 | # Android/IntelliJ
26 | #
27 | build/
28 | .idea
29 | .gradle
30 | local.properties
31 | *.iml
32 |
33 | # node.js
34 | #
35 | node_modules/
36 | npm-debug.log
37 | yarn-error.log
38 |
39 | # BUCK
40 | buck-out/
41 | \.buckd/
42 | *.keystore
43 |
44 | # fastlane
45 | #
46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
47 | # screenshots whenever they are needed.
48 | # For more information about the recommended setup visit:
49 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
50 |
51 | fastlane/report.xml
52 | fastlane/Preview.html
53 | fastlane/screenshots
54 |
--------------------------------------------------------------------------------
/examples/Ripple/.gitignore:
--------------------------------------------------------------------------------
1 | # OSX
2 | #
3 | .DS_Store
4 |
5 | # Xcode
6 | #
7 | build/
8 | *.pbxuser
9 | !default.pbxuser
10 | *.mode1v3
11 | !default.mode1v3
12 | *.mode2v3
13 | !default.mode2v3
14 | *.perspectivev3
15 | !default.perspectivev3
16 | xcuserdata
17 | *.xccheckout
18 | *.moved-aside
19 | DerivedData
20 | *.hmap
21 | *.ipa
22 | *.xcuserstate
23 | project.xcworkspace
24 |
25 | # Android/IntelliJ
26 | #
27 | build/
28 | .idea
29 | .gradle
30 | local.properties
31 | *.iml
32 |
33 | # node.js
34 | #
35 | node_modules/
36 | npm-debug.log
37 | yarn-error.log
38 |
39 | # BUCK
40 | buck-out/
41 | \.buckd/
42 | *.keystore
43 |
44 | # fastlane
45 | #
46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
47 | # screenshots whenever they are needed.
48 | # For more information about the recommended setup visit:
49 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
50 |
51 | fastlane/report.xml
52 | fastlane/Preview.html
53 | fastlane/screenshots
54 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Steeve Pitis
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/examples/Ripple/android/app/src/main/java/com/ripple/MainApplication.java:
--------------------------------------------------------------------------------
1 | package com.ripple;
2 |
3 | import android.app.Application;
4 |
5 | import com.facebook.react.ReactApplication;
6 | import com.facebook.react.ReactNativeHost;
7 | import com.facebook.react.ReactPackage;
8 | import com.facebook.react.shell.MainReactPackage;
9 | import com.facebook.soloader.SoLoader;
10 |
11 | import java.util.Arrays;
12 | import java.util.List;
13 |
14 | public class MainApplication extends Application implements ReactApplication {
15 |
16 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
17 | @Override
18 | public boolean getUseDeveloperSupport() {
19 | return BuildConfig.DEBUG;
20 | }
21 |
22 | @Override
23 | protected List getPackages() {
24 | return Arrays.asList(
25 | new MainReactPackage()
26 | );
27 | }
28 | };
29 |
30 | @Override
31 | public ReactNativeHost getReactNativeHost() {
32 | return mReactNativeHost;
33 | }
34 |
35 | @Override
36 | public void onCreate() {
37 | super.onCreate();
38 | SoLoader.init(this, /* native exopackage */ false);
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/examples/Login/android/app/src/main/java/com/examples/MainApplication.java:
--------------------------------------------------------------------------------
1 | package com.examples;
2 |
3 | import android.app.Application;
4 |
5 | import com.facebook.react.ReactApplication;
6 | import com.facebook.react.ReactNativeHost;
7 | import com.facebook.react.ReactPackage;
8 | import com.facebook.react.shell.MainReactPackage;
9 | import com.facebook.soloader.SoLoader;
10 |
11 | import java.util.Arrays;
12 | import java.util.List;
13 |
14 | public class MainApplication extends Application implements ReactApplication {
15 |
16 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
17 | @Override
18 | public boolean getUseDeveloperSupport() {
19 | return BuildConfig.DEBUG;
20 | }
21 |
22 | @Override
23 | protected List getPackages() {
24 | return Arrays.asList(
25 | new MainReactPackage()
26 | );
27 | }
28 | };
29 |
30 | @Override
31 | public ReactNativeHost getReactNativeHost() {
32 | return mReactNativeHost;
33 | }
34 |
35 | @Override
36 | public void onCreate() {
37 | super.onCreate();
38 | SoLoader.init(this, /* native exopackage */ false);
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/examples/Login/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
12 |
13 |
19 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/examples/Ripple/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
12 |
13 |
19 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "react-native-md-motion-buttons",
3 | "version": "1.1.0",
4 | "description": "Material design motion buttons",
5 | "main": "index.js",
6 | "directories": {
7 | "example": "examples"
8 | },
9 | "config": {
10 | "exp": "Login"
11 | },
12 | "scripts": {
13 | "start": "node scripts start",
14 | "ios": "node scripts ios",
15 | "android": "node scripts android",
16 | "build": "rm -rf examples/Login/node_modules/react-native-md-motion-buttons && cd examples/Login && npm install",
17 | "test": "node scripts test",
18 | "watch": "node scripts watch"
19 | },
20 | "repository": {
21 | "type": "git",
22 | "url": "git+https://github.com/zecaptus/react-native-md-motion-buttons.git"
23 | },
24 | "keywords": [
25 | "react",
26 | "react-native",
27 | "material",
28 | "design",
29 | "motion",
30 | "animation"
31 | ],
32 | "author": "Steeve Pitis",
33 | "license": "MIT",
34 | "bugs": {
35 | "url": "https://github.com/zecaptus/react-native-md-motion-buttons/issues"
36 | },
37 | "homepage": "https://github.com/zecaptus/react-native-md-motion-buttons#readme",
38 | "peerDependencies": {
39 | "react": "16.0.0-alpha.6",
40 | "react-native": "0.43.*"
41 | },
42 | "devDependencies": {
43 | "cpx": "^1.5.0"
44 | },
45 | "dependencies": {
46 | "prop-types": "^15.6.1"
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/examples/Ripple/ios/Ripple/AppDelegate.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import "AppDelegate.h"
11 |
12 | #import
13 | #import
14 |
15 | @implementation AppDelegate
16 |
17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
18 | {
19 | NSURL *jsCodeLocation;
20 |
21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
22 |
23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
24 | moduleName:@"Ripple"
25 | initialProperties:nil
26 | launchOptions:launchOptions];
27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
28 |
29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
30 | UIViewController *rootViewController = [UIViewController new];
31 | rootViewController.view = rootView;
32 | self.window.rootViewController = rootViewController;
33 | [self.window makeKeyAndVisible];
34 | return YES;
35 | }
36 |
37 | @end
38 |
--------------------------------------------------------------------------------
/examples/Login/ios/examples/AppDelegate.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import "AppDelegate.h"
11 |
12 | #import
13 | #import
14 |
15 | @implementation AppDelegate
16 |
17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
18 | {
19 | NSURL *jsCodeLocation;
20 |
21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
22 |
23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
24 | moduleName:@"examples"
25 | initialProperties:nil
26 | launchOptions:launchOptions];
27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
28 |
29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
30 | UIViewController *rootViewController = [UIViewController new];
31 | rootViewController.view = rootView;
32 | self.window.rootViewController = rootViewController;
33 | [self.window makeKeyAndVisible];
34 | return YES;
35 | }
36 |
37 | @end
38 |
--------------------------------------------------------------------------------
/examples/Login/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 | .*/Libraries/react-native/ReactNative.js
16 |
17 | [include]
18 |
19 | [libs]
20 | node_modules/react-native/Libraries/react-native/react-native-interface.js
21 | node_modules/react-native/flow
22 | flow/
23 |
24 | [options]
25 | emoji=true
26 |
27 | module.system=haste
28 |
29 | experimental.strict_type_args=true
30 |
31 | munge_underscores=true
32 |
33 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
34 |
35 | suppress_type=$FlowIssue
36 | suppress_type=$FlowFixMe
37 | suppress_type=$FixMe
38 |
39 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-0]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
40 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-0]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
41 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
42 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
43 |
44 | unsafe.enable_getters_and_setters=true
45 |
46 | [version]
47 | ^0.40.0
48 |
--------------------------------------------------------------------------------
/examples/Ripple/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 | .*/Libraries/react-native/ReactNative.js
16 |
17 | [include]
18 |
19 | [libs]
20 | node_modules/react-native/Libraries/react-native/react-native-interface.js
21 | node_modules/react-native/flow
22 | flow/
23 |
24 | [options]
25 | emoji=true
26 |
27 | module.system=haste
28 |
29 | experimental.strict_type_args=true
30 |
31 | munge_underscores=true
32 |
33 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
34 |
35 | suppress_type=$FlowIssue
36 | suppress_type=$FlowFixMe
37 | suppress_type=$FixMe
38 |
39 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-0]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
40 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-0]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
41 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
42 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
43 |
44 | unsafe.enable_getters_and_setters=true
45 |
46 | [version]
47 | ^0.40.0
48 |
--------------------------------------------------------------------------------
/examples/Ripple/index.ios.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Sample React Native App
3 | * https://github.com/facebook/react-native
4 | * @flow
5 | */
6 |
7 | import React, { Component } from 'react';
8 | import {
9 | AppRegistry,
10 | StyleSheet,
11 | Text,
12 | View
13 | } from 'react-native';
14 | import { Ripple } from 'react-native-md-motion-buttons';
15 |
16 | export default class RippleExp extends Component {
17 | render() {
18 | return (
19 |
20 |
21 | Not rounded{'\n'}White ripple
22 |
23 |
24 | Not rounded{'\n'}Purple ripple
25 |
26 |
27 | Rounded: 10{'\n'}Purple ripple
28 |
29 |
30 | Rounded: 25{'\n'}Purple ripple
31 |
32 |
33 | );
34 | }
35 | }
36 |
37 | const styles = StyleSheet.create({
38 | container: {
39 | flex: 1,
40 | justifyContent: 'center',
41 | alignItems: 'center',
42 | backgroundColor: '#F5FCFF'
43 | },
44 | test: {
45 | marginTop: 10,
46 | width: 200,
47 | height: 50,
48 | backgroundColor: 'red',
49 | alignItems: 'center'
50 | }
51 | });
52 |
53 | AppRegistry.registerComponent('Ripple', () => RippleExp);
54 |
--------------------------------------------------------------------------------
/examples/Login/ios/examples-tvOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UIViewControllerBasedStatusBarAppearance
38 |
39 | NSLocationWhenInUseUsageDescription
40 |
41 | NSAppTransportSecurity
42 |
43 |
44 | NSExceptionDomains
45 |
46 | localhost
47 |
48 | NSExceptionAllowsInsecureHTTPLoads
49 |
50 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/examples/Ripple/android/app/BUCK:
--------------------------------------------------------------------------------
1 | # To learn about Buck see [Docs](https://buckbuild.com/).
2 | # To run your application with Buck:
3 | # - install Buck
4 | # - `npm start` - to start the packager
5 | # - `cd android`
6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
8 | # - `buck install -r android/app` - compile, install and run application
9 | #
10 |
11 | lib_deps = []
12 |
13 | for jarfile in glob(['libs/*.jar']):
14 | name = 'jars__' + jarfile[jarfile.rindex('/') + 1: jarfile.rindex('.jar')]
15 | lib_deps.append(':' + name)
16 | prebuilt_jar(
17 | name = name,
18 | binary_jar = jarfile,
19 | )
20 |
21 | for aarfile in glob(['libs/*.aar']):
22 | name = 'aars__' + aarfile[aarfile.rindex('/') + 1: aarfile.rindex('.aar')]
23 | lib_deps.append(':' + name)
24 | android_prebuilt_aar(
25 | name = name,
26 | aar = aarfile,
27 | )
28 |
29 | android_library(
30 | name = "all-libs",
31 | exported_deps = lib_deps,
32 | )
33 |
34 | android_library(
35 | name = "app-code",
36 | srcs = glob([
37 | "src/main/java/**/*.java",
38 | ]),
39 | deps = [
40 | ":all-libs",
41 | ":build_config",
42 | ":res",
43 | ],
44 | )
45 |
46 | android_build_config(
47 | name = "build_config",
48 | package = "com.ripple",
49 | )
50 |
51 | android_resource(
52 | name = "res",
53 | package = "com.ripple",
54 | res = "src/main/res",
55 | )
56 |
57 | android_binary(
58 | name = "app",
59 | keystore = "//android/keystores:debug",
60 | manifest = "src/main/AndroidManifest.xml",
61 | package_type = "debug",
62 | deps = [
63 | ":app-code",
64 | ],
65 | )
66 |
--------------------------------------------------------------------------------
/examples/Ripple/ios/Ripple-tvOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UIViewControllerBasedStatusBarAppearance
38 |
39 | NSLocationWhenInUseUsageDescription
40 |
41 | NSAppTransportSecurity
42 |
43 |
44 | NSExceptionDomains
45 |
46 | localhost
47 |
48 | NSExceptionAllowsInsecureHTTPLoads
49 |
50 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/examples/Login/android/app/BUCK:
--------------------------------------------------------------------------------
1 | # To learn about Buck see [Docs](https://buckbuild.com/).
2 | # To run your application with Buck:
3 | # - install Buck
4 | # - `npm start` - to start the packager
5 | # - `cd android`
6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
8 | # - `buck install -r android/app` - compile, install and run application
9 | #
10 |
11 | lib_deps = []
12 |
13 | for jarfile in glob(['libs/*.jar']):
14 | name = 'jars__' + jarfile[jarfile.rindex('/') + 1: jarfile.rindex('.jar')]
15 | lib_deps.append(':' + name)
16 | prebuilt_jar(
17 | name = name,
18 | binary_jar = jarfile,
19 | )
20 |
21 | for aarfile in glob(['libs/*.aar']):
22 | name = 'aars__' + aarfile[aarfile.rindex('/') + 1: aarfile.rindex('.aar')]
23 | lib_deps.append(':' + name)
24 | android_prebuilt_aar(
25 | name = name,
26 | aar = aarfile,
27 | )
28 |
29 | android_library(
30 | name = "all-libs",
31 | exported_deps = lib_deps,
32 | )
33 |
34 | android_library(
35 | name = "app-code",
36 | srcs = glob([
37 | "src/main/java/**/*.java",
38 | ]),
39 | deps = [
40 | ":all-libs",
41 | ":build_config",
42 | ":res",
43 | ],
44 | )
45 |
46 | android_build_config(
47 | name = "build_config",
48 | package = "com.examples",
49 | )
50 |
51 | android_resource(
52 | name = "res",
53 | package = "com.examples",
54 | res = "src/main/res",
55 | )
56 |
57 | android_binary(
58 | name = "app",
59 | keystore = "//android/keystores:debug",
60 | manifest = "src/main/AndroidManifest.xml",
61 | package_type = "debug",
62 | deps = [
63 | ":app-code",
64 | ],
65 | )
66 |
--------------------------------------------------------------------------------
/examples/Ripple/ios/Ripple/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | Ripple
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | 1
25 | LSRequiresIPhoneOS
26 |
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UIViewControllerBasedStatusBarAppearance
40 |
41 | NSLocationWhenInUseUsageDescription
42 |
43 | NSAppTransportSecurity
44 |
45 |
46 | NSExceptionDomains
47 |
48 | localhost
49 |
50 | NSExceptionAllowsInsecureHTTPLoads
51 |
52 |
53 |
54 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/examples/Login/ios/examples/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | examples
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | 1
25 | LSRequiresIPhoneOS
26 |
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UIViewControllerBasedStatusBarAppearance
40 |
41 | NSLocationWhenInUseUsageDescription
42 |
43 | NSAppTransportSecurity
44 |
45 |
46 | NSExceptionDomains
47 |
48 | localhost
49 |
50 | NSExceptionAllowsInsecureHTTPLoads
51 |
52 |
53 |
54 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/examples/Ripple/index.android.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Sample React Native App
3 | * https://github.com/facebook/react-native
4 | * @flow
5 | */
6 |
7 | import React, { Component } from 'react';
8 | import {
9 | AppRegistry,
10 | StyleSheet,
11 | Text,
12 | View
13 | } from 'react-native';
14 | import { Ripple } from 'react-native-md-motion-buttons';
15 |
16 | export default class RippleExp extends Component {
17 | render() {
18 | return (
19 |
20 |
21 | Not rounded{'\n'}White ripple
22 |
23 |
24 | Not rounded{'\n'}Purple ripple
25 |
26 |
27 | Rounded: 10{'\n'}Purple ripple
28 |
29 |
30 | Rounded: 10{'\n'}Purple ripple{'\n'}masked
31 |
32 |
33 | Rounded: 25{'\n'}Purple ripple
34 |
35 |
36 | Rounded: 25{'\n'}Purple ripple{'\n'}masked
37 |
38 |
39 | );
40 | }
41 | }
42 |
43 | const styles = StyleSheet.create({
44 | container: {
45 | flex: 1,
46 | justifyContent: 'center',
47 | alignItems: 'center',
48 | backgroundColor: '#F5FCFF'
49 | },
50 | test: {
51 | marginTop: 10,
52 | width: 200,
53 | height: 50,
54 | backgroundColor: 'red',
55 | alignItems: 'center'
56 | }
57 | });
58 |
59 | AppRegistry.registerComponent('Ripple', () => RippleExp);
60 |
--------------------------------------------------------------------------------
/examples/Login/index.ios.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Sample React Native App
3 | * https://github.com/facebook/react-native
4 | * @flow
5 | */
6 |
7 | import React, { Component } from 'react';
8 | import {
9 | AppRegistry,
10 | StyleSheet,
11 | Text,
12 | View,
13 | Button
14 | } from 'react-native';
15 | import { Login } from 'react-native-md-motion-buttons';
16 |
17 | class Home extends Component {
18 | render() {
19 | return (
20 |
21 | New screen
22 |
23 |
24 |
25 | )
26 | }
27 | }
28 |
29 | export default class examples extends Component {
30 | render() {
31 | const promise = () => new Promise((resolve, reject) => setTimeout(() => resolve(), 2000) );
32 |
33 | return (
34 | }>
35 |
36 |
37 | Welcome to React Native!
38 |
39 |
40 | To get started, edit index.ios.js
41 |
42 |
43 | Press Cmd+R to reload,{'\n'}
44 | Cmd+D or shake for dev menu
45 |
46 |
47 |
52 |
53 |
54 | )
55 | }
56 | }
57 |
58 | const styles = StyleSheet.create({
59 | container: {
60 | flex: 1,
61 | justifyContent: 'center',
62 | alignItems: 'center',
63 | backgroundColor: '#F5FCFF',
64 | },
65 | welcome: {
66 | fontSize: 20,
67 | textAlign: 'center',
68 | margin: 10,
69 | },
70 | instructions: {
71 | textAlign: 'center',
72 | color: '#333333',
73 | marginBottom: 5,
74 | },
75 | button: {
76 | height: 50,
77 | flexDirection: 'row',
78 | alignItems: 'center',
79 | borderRadius: 25,
80 | marginBottom: 10,
81 | marginTop: 40,
82 | marginRight: 20,
83 | marginLeft: 20,
84 | width: 300,
85 | justifyContent: 'center',
86 | backgroundColor: "#380b22"
87 | },
88 | });
89 |
90 | AppRegistry.registerComponent('examples', () => examples);
91 |
--------------------------------------------------------------------------------
/examples/Ripple/ios/RippleTests/RippleTests.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 | #import
12 |
13 | #import
14 | #import
15 |
16 | #define TIMEOUT_SECONDS 600
17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!"
18 |
19 | @interface RippleTests : XCTestCase
20 |
21 | @end
22 |
23 | @implementation RippleTests
24 |
25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
26 | {
27 | if (test(view)) {
28 | return YES;
29 | }
30 | for (UIView *subview in [view subviews]) {
31 | if ([self findSubviewInView:subview matching:test]) {
32 | return YES;
33 | }
34 | }
35 | return NO;
36 | }
37 |
38 | - (void)testRendersWelcomeScreen
39 | {
40 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController];
41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
42 | BOOL foundElement = NO;
43 |
44 | __block NSString *redboxError = nil;
45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
46 | if (level >= RCTLogLevelError) {
47 | redboxError = message;
48 | }
49 | });
50 |
51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
54 |
55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) {
56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
57 | return YES;
58 | }
59 | return NO;
60 | }];
61 | }
62 |
63 | RCTSetLogFunction(RCTDefaultLogFunction);
64 |
65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
67 | }
68 |
69 |
70 | @end
71 |
--------------------------------------------------------------------------------
/examples/Login/ios/examplesTests/examplesTests.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 | #import
12 |
13 | #import
14 | #import
15 |
16 | #define TIMEOUT_SECONDS 600
17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!"
18 |
19 | @interface examplesTests : XCTestCase
20 |
21 | @end
22 |
23 | @implementation examplesTests
24 |
25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
26 | {
27 | if (test(view)) {
28 | return YES;
29 | }
30 | for (UIView *subview in [view subviews]) {
31 | if ([self findSubviewInView:subview matching:test]) {
32 | return YES;
33 | }
34 | }
35 | return NO;
36 | }
37 |
38 | - (void)testRendersWelcomeScreen
39 | {
40 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController];
41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
42 | BOOL foundElement = NO;
43 |
44 | __block NSString *redboxError = nil;
45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
46 | if (level >= RCTLogLevelError) {
47 | redboxError = message;
48 | }
49 | });
50 |
51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
54 |
55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) {
56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
57 | return YES;
58 | }
59 | return NO;
60 | }];
61 | }
62 |
63 | RCTSetLogFunction(RCTDefaultLogFunction);
64 |
65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
67 | }
68 |
69 |
70 | @end
71 |
--------------------------------------------------------------------------------
/src/Login/View.js:
--------------------------------------------------------------------------------
1 | import React, { Component, Children } from 'react';
2 | import { StyleSheet, Text, View as NativeView } from 'react-native';
3 | import { Button, Overlay } from './';
4 | import PropTypes from 'prop-types';
5 |
6 | export default class View extends Component {
7 | static propTypes = {
8 | homeScreen: PropTypes.element.isRequired,
9 | style: PropTypes.number,
10 | children: props => {
11 | const found = props.children.map(child => child.type === Button);
12 |
13 | if (found.indexOf(true) === -1)
14 | throw new Error("Can't find `Login.Button` component");
15 | },
16 | };
17 |
18 | constructor(props) {
19 | super(props);
20 |
21 | this.state = {
22 | loading: false,
23 | nextScreen: false,
24 | color: 'transparent',
25 | };
26 | }
27 |
28 | handleClick(promise) {
29 | const { style } = this.refs.button.props;
30 | const { backgroundColor } = StyleSheet.flatten(style);
31 |
32 | this.setState({ loading: true, color: backgroundColor });
33 | promise()
34 | .then(this.success)
35 | .catch(this.error);
36 | }
37 |
38 | success = () => {
39 | const { button, overlay } = this.refs;
40 |
41 | overlay.init(button);
42 | };
43 |
44 | error = () => this.setState({ loading: false });
45 |
46 | transition = () => {
47 | const { overlay } = this.refs;
48 |
49 | this.setState({ nextScreen: true }, () =>
50 | overlay.fadeOut(() => overlay.reset()),
51 | );
52 | };
53 |
54 | logout = () => {
55 | const { overlay } = this.refs;
56 |
57 | overlay.fadeIn(() =>
58 | this.setState({ nextScreen: false }, () =>
59 | overlay.zoomOut(() => this.setState({ loading: false })),
60 | ),
61 | );
62 | };
63 |
64 | renderChildren() {
65 | const { children } = this.props;
66 | const { loading } = this.state;
67 |
68 | return Children.map(children, child => {
69 | if (child.type === Button) {
70 | return React.cloneElement(child, {
71 | loading,
72 | ref: 'button',
73 | onPress: this.handleClick.bind(this, child.props.onPress),
74 | });
75 | } else {
76 | return child;
77 | }
78 | });
79 | }
80 |
81 | render() {
82 | const { style, homeScreen } = this.props;
83 | const { nextScreen, color } = this.state;
84 |
85 | return (
86 |
87 | {this.renderChildren()}
88 | {nextScreen
89 | ? React.cloneElement(homeScreen, { logout: this.logout })
90 | : null}
91 |
92 |
93 | );
94 | }
95 | }
96 |
--------------------------------------------------------------------------------
/examples/Login/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/examples/Ripple/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/examples/Login/android/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
19 | # Disabling obfuscation is useful if you collect stack traces from production crashes
20 | # (unless you are using a system that supports de-obfuscate the stack traces).
21 | -dontobfuscate
22 |
23 | # React Native
24 |
25 | # Keep our interfaces so they can be used by other ProGuard rules.
26 | # See http://sourceforge.net/p/proguard/bugs/466/
27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip
28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters
29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip
30 |
31 | # Do not strip any method/class that is annotated with @DoNotStrip
32 | -keep @com.facebook.proguard.annotations.DoNotStrip class *
33 | -keep @com.facebook.common.internal.DoNotStrip class *
34 | -keepclassmembers class * {
35 | @com.facebook.proguard.annotations.DoNotStrip *;
36 | @com.facebook.common.internal.DoNotStrip *;
37 | }
38 |
39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * {
40 | void set*(***);
41 | *** get*();
42 | }
43 |
44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; }
45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; }
46 | -keepclassmembers,includedescriptorclasses class * { native ; }
47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; }
48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; }
49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; }
50 |
51 | -dontwarn com.facebook.react.**
52 |
53 | # okhttp
54 |
55 | -keepattributes Signature
56 | -keepattributes *Annotation*
57 | -keep class okhttp3.** { *; }
58 | -keep interface okhttp3.** { *; }
59 | -dontwarn okhttp3.**
60 |
61 | # okio
62 |
63 | -keep class sun.misc.Unsafe { *; }
64 | -dontwarn java.nio.file.*
65 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
66 | -dontwarn okio.**
67 |
--------------------------------------------------------------------------------
/examples/Ripple/android/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
19 | # Disabling obfuscation is useful if you collect stack traces from production crashes
20 | # (unless you are using a system that supports de-obfuscate the stack traces).
21 | -dontobfuscate
22 |
23 | # React Native
24 |
25 | # Keep our interfaces so they can be used by other ProGuard rules.
26 | # See http://sourceforge.net/p/proguard/bugs/466/
27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip
28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters
29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip
30 |
31 | # Do not strip any method/class that is annotated with @DoNotStrip
32 | -keep @com.facebook.proguard.annotations.DoNotStrip class *
33 | -keep @com.facebook.common.internal.DoNotStrip class *
34 | -keepclassmembers class * {
35 | @com.facebook.proguard.annotations.DoNotStrip *;
36 | @com.facebook.common.internal.DoNotStrip *;
37 | }
38 |
39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * {
40 | void set*(***);
41 | *** get*();
42 | }
43 |
44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; }
45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; }
46 | -keepclassmembers,includedescriptorclasses class * { native ; }
47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; }
48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; }
49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; }
50 |
51 | -dontwarn com.facebook.react.**
52 |
53 | # okhttp
54 |
55 | -keepattributes Signature
56 | -keepattributes *Annotation*
57 | -keep class okhttp3.** { *; }
58 | -keep interface okhttp3.** { *; }
59 | -dontwarn okhttp3.**
60 |
61 | # okio
62 |
63 | -keep class sun.misc.Unsafe { *; }
64 | -dontwarn java.nio.file.*
65 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
66 | -dontwarn okio.**
67 |
--------------------------------------------------------------------------------
/examples/Login/index.android.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Sample React Native App
3 | * https://github.com/facebook/react-native
4 | * @flow
5 | */
6 |
7 | import React, { Component } from 'react';
8 | import {
9 | AppRegistry,
10 | StyleSheet,
11 | Text,
12 | View,
13 | Button,
14 | StatusBar
15 | } from 'react-native';
16 | import { Login } from 'react-native-md-motion-buttons';
17 |
18 | class Home extends Component {
19 | render() {
20 | return (
21 |
22 | New screen
23 |
24 |
25 |
26 | )
27 | }
28 | }
29 |
30 | export default class examples extends Component {
31 | constructor(props){
32 | super(props);
33 |
34 | }
35 |
36 | render() {
37 | const promise = () => new Promise((resolve, reject) => setTimeout(() => resolve(), 2000) );
38 |
39 | console.log("login", Login);
40 | return (
41 | }>
42 |
43 |
44 |
45 | Welcome to React Native!
46 |
47 |
48 | To get started, edit index.android.js
49 |
50 |
51 | Double tap R on your keyboard to reload,{'\n'}
52 | Shake or press menu button for dev menu
53 |
54 |
55 |
61 |
62 |
63 | )
64 | }
65 | }
66 |
67 | const styles = StyleSheet.create({
68 | container: {
69 | flex: 1,
70 | justifyContent: 'center',
71 | alignItems: 'center',
72 | backgroundColor: '#F5FCFF',
73 | },
74 | welcome: {
75 | fontSize: 20,
76 | textAlign: 'center',
77 | margin: 10,
78 | },
79 | instructions: {
80 | textAlign: 'center',
81 | color: '#333333',
82 | marginBottom: 5,
83 | },
84 | button: {
85 | height: 50,
86 | flexDirection: 'row',
87 | alignItems: 'center',
88 | borderRadius: 25,
89 | marginBottom: 10,
90 | marginTop: 40,
91 | marginRight: 20,
92 | marginLeft: 20,
93 | width: 300,
94 | justifyContent: 'center',
95 | backgroundColor: "#380b22"
96 | },
97 | });
98 |
99 | AppRegistry.registerComponent('examples', () => examples);
100 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # react-native-md-motion-buttons (iOS / Android)
2 |
3 | [](https://badge.fury.io/js/react-native-md-motion-buttons)
4 |
5 | I wanted to re-create this animation with react-native (https://dribbble.com/shots/1945593-Login-Home-Screen)
6 |
7 | 
8 |
9 |
10 | # Installation
11 |
12 | `npm install react-native-md-motion-buttons --save`
13 |
14 | # Usage
15 |
16 | ```jsx
17 | import React, { Component } from 'react';
18 | import {
19 | AppRegistry,
20 | StyleSheet,
21 | Text,
22 | View,
23 | Button
24 | } from 'react-native';
25 | import { Login } from 'react-native-md-motion-buttons';
26 |
27 | class Home extends Component {
28 | render() {
29 | return (
30 |
31 | New screen
32 |
33 |
34 |
35 | )
36 | }
37 | }
38 |
39 | export default class examples extends Component {
40 | render() {
41 | const promise = () => new Promise((resolve, reject) => setTimeout(() => resolve(), 2000) );
42 |
43 | return (
44 | }>
45 |
46 |
47 | Welcome to React Native!
48 |
49 |
50 | To get started, edit index.ios.js
51 |
52 |
53 | Press Cmd+R to reload,{'\n'}
54 | Cmd+D or shake for dev menu
55 |
56 |
57 |
61 |
62 |
63 | )
64 | }
65 | }
66 | ```
67 |
68 | #### View Props
69 |
70 | | Prop | Type | Description |
71 | |---|---|---|
72 | |**`children`**|`ReactElement`|React Element(s) to render. **Button must be a direct child.**|
73 | |**`homeScreen`**|`ReactElement`|New screen to render after the animation. `` expose a `logout` function as a prop to this Component |
74 | |**`style`**|`StyleSheet`|Apply style to the View|
75 |
76 | #### Button Props
77 |
78 | | Prop | Type | Description |
79 | |---|---|---|
80 | |**`title`**|`?String`|Button title. _Default : 'Login'_|
81 | |**`color`**|`?String`|Text color. _Default: 'white'_|
82 | |**`style`**|`StyleSheet`|Apply style to the Button. _**backgroundColor** is required_|
83 | |**`onPress`**|`() => Promise>`|Handle button click. **Must returned a promise**|
84 |
85 | # Roadmap
86 |
87 | ## Next release
88 |
89 | - [x] Add ripple effect for button
90 | - [ ] Add a Floating Action Button (FAB) which will move to the center (like inVision dribble)
91 |
--------------------------------------------------------------------------------
/src/Login/Button.js:
--------------------------------------------------------------------------------
1 | import React, { Component, Children } from 'react';
2 | import {
3 | StyleSheet,
4 | Animated,
5 | Text,
6 | View,
7 | ActivityIndicator,
8 | UIManager,
9 | findNodeHandle,
10 | } from 'react-native';
11 | import { Easing } from '../utils';
12 | import Ripple from '../Ripple';
13 | import PropTypes from 'prop-types';
14 |
15 | export default class Button extends Component {
16 | static propTypes = {
17 | style: props => {
18 | const style = StyleSheet.flatten(props.style);
19 | if (!style.hasOwnProperty('backgroundColor'))
20 | throw new Error(
21 | 'Missing `backgroundColor` in `style` prop in `Login.Button`',
22 | );
23 | },
24 | title: PropTypes.string,
25 | onPress: PropTypes.func.isRequired,
26 | color: PropTypes.string,
27 | loading: PropTypes.bool,
28 | };
29 |
30 | static defaultProps = {
31 | color: 'white',
32 | title: 'Login',
33 | };
34 |
35 | constructor(props) {
36 | super(props);
37 |
38 | this.buttonWidth = new Animated.Value(props.loading ? 1 : 0);
39 | console.log('ripple', Ripple);
40 | this.state = {
41 | width: 0,
42 | height: 0,
43 | };
44 | }
45 |
46 | shouldComponentUpdate(newProps) {
47 | const { loading } = this.props;
48 |
49 | return !(loading && !newProps.loading);
50 | }
51 |
52 | componentWillReceiveProps(newProps) {
53 | const { loading } = this.props;
54 |
55 | if (!loading && newProps.loading) this.load();
56 | if (loading && !newProps.loading) this.unload(() => this.forceUpdate());
57 | }
58 |
59 | componentDidMount() {
60 | setTimeout(() => {
61 | UIManager.measure(findNodeHandle(this), (fx, fy, width, height, px, py) =>
62 | this.setState({ px, py, width, height }),
63 | );
64 | }, 0);
65 | }
66 |
67 | load = callback => this.animate(0, 1, callback);
68 | unload = callback => this.animate(1, 0, callback);
69 |
70 | animate = (start, end, callback) => {
71 | this.buttonWidth.setValue(start);
72 | Animated.timing(this.buttonWidth, {
73 | toValue: end,
74 | duration: 200,
75 | easing: Easing.Standard,
76 | }).start(callback);
77 | };
78 |
79 | _onPressButton = () => {
80 | const { loading, onPress } = this.props;
81 |
82 | if (!loading) onPress(this.button);
83 | };
84 |
85 | reset = () => this.buttonWidth.setValue(0);
86 |
87 | render() {
88 | const { style, color, title, loading, rippleMask } = this.props;
89 | const { width, height } = this.state;
90 |
91 | const anim = this.buttonWidth.interpolate({
92 | inputRange: [0, 1],
93 | outputRange: [width, height],
94 | });
95 |
96 | const animationStyle = width !== 0 ? { width: anim } : {};
97 |
98 | return (
99 |
105 | {!loading ? (
106 | {title}
107 | ) : (
108 |
109 | )}
110 |
111 | );
112 | }
113 | }
114 |
--------------------------------------------------------------------------------
/src/Login/Overlay.js:
--------------------------------------------------------------------------------
1 | import React, { Component, Children } from 'react';
2 | import {
3 | StyleSheet,
4 | Animated,
5 | UIManager,
6 | findNodeHandle,
7 | Dimensions,
8 | } from 'react-native';
9 | import { Easing } from '../utils';
10 | import PropTypes from 'prop-types';
11 |
12 | export default class Overlay extends Component {
13 | constructor(props) {
14 | super(props);
15 |
16 | this.overlayZoom = new Animated.Value(0);
17 | this.overlayFade = new Animated.Value(1);
18 |
19 | this.state = {
20 | top: 0,
21 | left: 0,
22 | };
23 | }
24 |
25 | init(button) {
26 | const { onTransition } = this.props;
27 | const window = Dimensions.get('window');
28 |
29 | UIManager.measure(
30 | findNodeHandle(button),
31 | (fx, fy, width, height, px, py) => {
32 | let _top = (top = py + height / 2);
33 | let _left = (left = px + width / 2);
34 |
35 | // bottom left button => NP
36 | // left button
37 | if (left < window.width / 2) {
38 | _left = window.width - left;
39 | }
40 | // top button
41 | if (top < window.height / 2) {
42 | _top = window.height - top;
43 | }
44 |
45 | this.setState(
46 | {
47 | top,
48 | left,
49 | height: Math.sqrt(_top * _top + _left * _left) * 2,
50 | },
51 | () => this.zoomIn(onTransition),
52 | );
53 | },
54 | );
55 | }
56 |
57 | zoomIn = callback => this.zoom(0, 1, callback);
58 | zoomOut = callback => this.zoom(1, 0, callback);
59 | fadeIn = callback => this.fade(0, 1, callback);
60 | fadeOut = callback => this.fade(1, 0, callback);
61 |
62 | zoom = (start, end, callback) => {
63 | const { height } = this.state;
64 |
65 | this.overlayZoom.setValue(start);
66 | Animated.timing(this.overlayZoom, {
67 | toValue: end,
68 | duration: height / 5 || 200,
69 | easing: Easing.Deceleration,
70 | }).start(callback);
71 | };
72 |
73 | fade = (start, end, callback) => {
74 | this.overlayFade.setValue(start);
75 | Animated.timing(this.overlayFade, {
76 | toValue: end,
77 | duration: 100,
78 | easing: Easing.Standard,
79 | }).start(callback);
80 | };
81 |
82 | reset = () => {
83 | this.overlayZoom.setValue(0);
84 | this.overlayFade.setValue(1);
85 | };
86 |
87 | render() {
88 | const { top, left, height } = this.state;
89 | const { color } = this.props;
90 | const inputRange = [0, 1];
91 | const size = this.overlayZoom.interpolate({
92 | inputRange,
93 | outputRange: [0, height],
94 | });
95 | const middleSize = this.overlayZoom.interpolate({
96 | inputRange,
97 | outputRange: [0, height / 2],
98 | });
99 | const atop = this.overlayZoom.interpolate({
100 | inputRange,
101 | outputRange: [top, top - height / 2],
102 | });
103 | const aleft = this.overlayZoom.interpolate({
104 | inputRange,
105 | outputRange: [left, left - height / 2],
106 | });
107 | const _color = this.overlayFade.interpolate({
108 | inputRange,
109 | outputRange: ['transparent', color],
110 | });
111 |
112 | return (
113 |
124 | );
125 | }
126 | }
127 |
--------------------------------------------------------------------------------
/examples/Login/ios/examples/Base.lproj/LaunchScreen.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
21 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/examples/Ripple/ios/Ripple/Base.lproj/LaunchScreen.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
21 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/examples/Ripple/ios/Ripple.xcodeproj/xcshareddata/xcschemes/Ripple.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
43 |
49 |
50 |
51 |
52 |
53 |
58 |
59 |
61 |
67 |
68 |
69 |
70 |
71 |
77 |
78 |
79 |
80 |
81 |
82 |
92 |
94 |
100 |
101 |
102 |
103 |
104 |
105 |
111 |
113 |
119 |
120 |
121 |
122 |
124 |
125 |
128 |
129 |
130 |
--------------------------------------------------------------------------------
/examples/Login/ios/examples.xcodeproj/xcshareddata/xcschemes/examples.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
43 |
49 |
50 |
51 |
52 |
53 |
58 |
59 |
61 |
67 |
68 |
69 |
70 |
71 |
77 |
78 |
79 |
80 |
81 |
82 |
92 |
94 |
100 |
101 |
102 |
103 |
104 |
105 |
111 |
113 |
119 |
120 |
121 |
122 |
124 |
125 |
128 |
129 |
130 |
--------------------------------------------------------------------------------
/examples/Ripple/ios/Ripple.xcodeproj/xcshareddata/xcschemes/Ripple-tvOS.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
43 |
49 |
50 |
51 |
52 |
53 |
58 |
59 |
61 |
67 |
68 |
69 |
70 |
71 |
77 |
78 |
79 |
80 |
81 |
82 |
92 |
94 |
100 |
101 |
102 |
103 |
104 |
105 |
111 |
113 |
119 |
120 |
121 |
122 |
124 |
125 |
128 |
129 |
130 |
--------------------------------------------------------------------------------
/src/Ripple/Ripple.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 | import {
3 | StyleSheet,
4 | Animated,
5 | View,
6 | TouchableWithoutFeedback,
7 | TouchableNativeFeedback,
8 | Platform,
9 | } from 'react-native';
10 | import { Easing } from '../utils';
11 | import PropTypes from 'prop-types';
12 |
13 | export default class Ripple extends Component {
14 | static propTypes = {
15 | onPress: PropTypes.func,
16 | rippleColor: PropTypes.string,
17 | };
18 |
19 | constructor(props) {
20 | super(props);
21 |
22 | this.pressIn = new Animated.Value(0);
23 |
24 | this.state = {
25 | cpt: 0,
26 | ripples: [],
27 | x: 0,
28 | y: 0,
29 | };
30 | }
31 |
32 | onPressIn = e => {
33 | const { locationX, locationY } = e.nativeEvent;
34 | this.fadeIn();
35 | this.setState({ x: locationX, y: locationY });
36 | };
37 |
38 | onPressOut = () => {
39 | const { x, y } = this.state;
40 | this.fadeOut();
41 | this.addRipple(x, y);
42 | };
43 |
44 | onPress = e => {
45 | const { onPress } = this.props;
46 |
47 | if (onPress) onPress(e);
48 | };
49 |
50 | addRipple = (x, y) => {
51 | const { ripples, cpt } = this.state;
52 |
53 | const ripple = { index: cpt, x, y, timing: new Animated.Value(0) };
54 |
55 | Animated.timing(ripple.timing, {
56 | toValue: 1,
57 | duration: 500,
58 | easing: Easing.ease,
59 | useNativeDriver: true,
60 | }).start(() => this.setState({ ripples: ripples.slice(1) }));
61 |
62 | this.setState({
63 | ripples: [...ripples, ripple],
64 | cpt: cpt + 1,
65 | });
66 | };
67 |
68 | fadeIn = () => this.fade(1, 1300);
69 | fadeOut = () => this.fade(0, 500);
70 | fade = (toValue, duration) => {
71 | this.pressIn.stopAnimation();
72 | Animated.timing(this.pressIn, {
73 | toValue,
74 | duration,
75 | easing: Easing.Standard,
76 | useNativeDriver: true,
77 | }).start();
78 | };
79 |
80 | renderAndroidRoundedMask() {
81 | const { style, masked } = this.props;
82 | const { borderRadius } = StyleSheet.flatten(style);
83 |
84 | const styles = {
85 | position: 'absolute',
86 | top: -borderRadius,
87 | bottom: -borderRadius,
88 | right: -borderRadius,
89 | left: -borderRadius,
90 | borderRadius: borderRadius * 2,
91 | borderWidth: borderRadius,
92 | borderColor: masked,
93 | };
94 |
95 | return (
96 |
97 |
98 |
99 | );
100 | }
101 |
102 | renderCompatibleNative() {
103 | const { children, masked, rippleColor, style } = this.props;
104 |
105 | return (
106 |
110 |
111 | {masked ? this.renderAndroidRoundedMask() : null}
112 | {children}
113 |
114 |
115 | );
116 | }
117 |
118 | renderRipple = ({ index, x, y, timing }) => {
119 | const { rippleColor } = this.props;
120 |
121 | const styleRipple = {
122 | position: 'absolute',
123 | top: y - 5,
124 | left: x - 5,
125 | backgroundColor: rippleColor,
126 | width: 10,
127 | height: 10,
128 | borderRadius: 5,
129 | transform: [
130 | {
131 | scale: timing.interpolate({
132 | inputRange: [0, 1],
133 | outputRange: [0.01, 20],
134 | }),
135 | },
136 | ],
137 | opacity: timing.interpolate({
138 | inputRange: [0, 1],
139 | outputRange: [0.6, 0],
140 | }),
141 | };
142 |
143 | return ;
144 | };
145 |
146 | renderDefault() {
147 | const { children, style, masked, rippleColor } = this.props;
148 | const { ripples } = this.state;
149 | const { borderRadius } = StyleSheet.flatten(style);
150 |
151 | const opacity = this.pressIn.interpolate({
152 | inputRange: [0, 1],
153 | outputRange: [0, 0.5],
154 | });
155 |
156 | return (
157 |
162 |
163 |
174 |
180 | {ripples.map(this.renderRipple)}
181 | {Platform.OS === 'android' && masked
182 | ? this.renderAndroidRoundedMask()
183 | : null}
184 |
185 | {children}
186 |
187 |
188 | );
189 | }
190 |
191 | render() {
192 | return Platform.OS === 'android' && Platform.Version > 21
193 | ? this.renderCompatibleNative()
194 | : this.renderDefault();
195 | }
196 | }
197 |
--------------------------------------------------------------------------------
/examples/Login/ios/examples.xcodeproj/xcshareddata/xcschemes/examples-tvOS.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
43 |
49 |
50 |
51 |
52 |
53 |
58 |
59 |
61 |
67 |
68 |
69 |
70 |
71 |
77 |
78 |
79 |
80 |
81 |
82 |
92 |
94 |
100 |
101 |
102 |
103 |
104 |
105 |
111 |
113 |
119 |
120 |
121 |
122 |
124 |
125 |
128 |
129 |
130 |
--------------------------------------------------------------------------------
/examples/Login/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # For Cygwin, ensure paths are in UNIX format before anything is touched.
46 | if $cygwin ; then
47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
48 | fi
49 |
50 | # Attempt to set APP_HOME
51 | # Resolve links: $0 may be a link
52 | PRG="$0"
53 | # Need this for relative symlinks.
54 | while [ -h "$PRG" ] ; do
55 | ls=`ls -ld "$PRG"`
56 | link=`expr "$ls" : '.*-> \(.*\)$'`
57 | if expr "$link" : '/.*' > /dev/null; then
58 | PRG="$link"
59 | else
60 | PRG=`dirname "$PRG"`"/$link"
61 | fi
62 | done
63 | SAVED="`pwd`"
64 | cd "`dirname \"$PRG\"`/" >&-
65 | APP_HOME="`pwd -P`"
66 | cd "$SAVED" >&-
67 |
68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
69 |
70 | # Determine the Java command to use to start the JVM.
71 | if [ -n "$JAVA_HOME" ] ; then
72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
73 | # IBM's JDK on AIX uses strange locations for the executables
74 | JAVACMD="$JAVA_HOME/jre/sh/java"
75 | else
76 | JAVACMD="$JAVA_HOME/bin/java"
77 | fi
78 | if [ ! -x "$JAVACMD" ] ; then
79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
80 |
81 | Please set the JAVA_HOME variable in your environment to match the
82 | location of your Java installation."
83 | fi
84 | else
85 | JAVACMD="java"
86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
87 |
88 | Please set the JAVA_HOME variable in your environment to match the
89 | location of your Java installation."
90 | fi
91 |
92 | # Increase the maximum file descriptors if we can.
93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
94 | MAX_FD_LIMIT=`ulimit -H -n`
95 | if [ $? -eq 0 ] ; then
96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
97 | MAX_FD="$MAX_FD_LIMIT"
98 | fi
99 | ulimit -n $MAX_FD
100 | if [ $? -ne 0 ] ; then
101 | warn "Could not set maximum file descriptor limit: $MAX_FD"
102 | fi
103 | else
104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
105 | fi
106 | fi
107 |
108 | # For Darwin, add options to specify how the application appears in the dock
109 | if $darwin; then
110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
111 | fi
112 |
113 | # For Cygwin, switch paths to Windows format before running java
114 | if $cygwin ; then
115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158 | function splitJvmOpts() {
159 | JVM_OPTS=("$@")
160 | }
161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
163 |
164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
165 |
--------------------------------------------------------------------------------
/examples/Ripple/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # For Cygwin, ensure paths are in UNIX format before anything is touched.
46 | if $cygwin ; then
47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
48 | fi
49 |
50 | # Attempt to set APP_HOME
51 | # Resolve links: $0 may be a link
52 | PRG="$0"
53 | # Need this for relative symlinks.
54 | while [ -h "$PRG" ] ; do
55 | ls=`ls -ld "$PRG"`
56 | link=`expr "$ls" : '.*-> \(.*\)$'`
57 | if expr "$link" : '/.*' > /dev/null; then
58 | PRG="$link"
59 | else
60 | PRG=`dirname "$PRG"`"/$link"
61 | fi
62 | done
63 | SAVED="`pwd`"
64 | cd "`dirname \"$PRG\"`/" >&-
65 | APP_HOME="`pwd -P`"
66 | cd "$SAVED" >&-
67 |
68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
69 |
70 | # Determine the Java command to use to start the JVM.
71 | if [ -n "$JAVA_HOME" ] ; then
72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
73 | # IBM's JDK on AIX uses strange locations for the executables
74 | JAVACMD="$JAVA_HOME/jre/sh/java"
75 | else
76 | JAVACMD="$JAVA_HOME/bin/java"
77 | fi
78 | if [ ! -x "$JAVACMD" ] ; then
79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
80 |
81 | Please set the JAVA_HOME variable in your environment to match the
82 | location of your Java installation."
83 | fi
84 | else
85 | JAVACMD="java"
86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
87 |
88 | Please set the JAVA_HOME variable in your environment to match the
89 | location of your Java installation."
90 | fi
91 |
92 | # Increase the maximum file descriptors if we can.
93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
94 | MAX_FD_LIMIT=`ulimit -H -n`
95 | if [ $? -eq 0 ] ; then
96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
97 | MAX_FD="$MAX_FD_LIMIT"
98 | fi
99 | ulimit -n $MAX_FD
100 | if [ $? -ne 0 ] ; then
101 | warn "Could not set maximum file descriptor limit: $MAX_FD"
102 | fi
103 | else
104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
105 | fi
106 | fi
107 |
108 | # For Darwin, add options to specify how the application appears in the dock
109 | if $darwin; then
110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
111 | fi
112 |
113 | # For Cygwin, switch paths to Windows format before running java
114 | if $cygwin ; then
115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158 | function splitJvmOpts() {
159 | JVM_OPTS=("$@")
160 | }
161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
163 |
164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
165 |
--------------------------------------------------------------------------------
/examples/Login/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: "com.android.application"
2 |
3 | import com.android.build.OutputFile
4 |
5 | /**
6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
7 | * and bundleReleaseJsAndAssets).
8 | * These basically call `react-native bundle` with the correct arguments during the Android build
9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
10 | * bundle directly from the development server. Below you can see all the possible configurations
11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the
12 | * `apply from: "../../node_modules/react-native/react.gradle"` line.
13 | *
14 | * project.ext.react = [
15 | * // the name of the generated asset file containing your JS bundle
16 | * bundleAssetName: "index.android.bundle",
17 | *
18 | * // the entry file for bundle generation
19 | * entryFile: "index.android.js",
20 | *
21 | * // whether to bundle JS and assets in debug mode
22 | * bundleInDebug: false,
23 | *
24 | * // whether to bundle JS and assets in release mode
25 | * bundleInRelease: true,
26 | *
27 | * // whether to bundle JS and assets in another build variant (if configured).
28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
29 | * // The configuration property can be in the following formats
30 | * // 'bundleIn${productFlavor}${buildType}'
31 | * // 'bundleIn${buildType}'
32 | * // bundleInFreeDebug: true,
33 | * // bundleInPaidRelease: true,
34 | * // bundleInBeta: true,
35 | *
36 | * // the root of your project, i.e. where "package.json" lives
37 | * root: "../../",
38 | *
39 | * // where to put the JS bundle asset in debug mode
40 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
41 | *
42 | * // where to put the JS bundle asset in release mode
43 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
44 | *
45 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
46 | * // require('./image.png')), in debug mode
47 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
48 | *
49 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
50 | * // require('./image.png')), in release mode
51 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
52 | *
53 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
54 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
55 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle
56 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
57 | * // for example, you might want to remove it from here.
58 | * inputExcludes: ["android/**", "ios/**"],
59 | *
60 | * // override which node gets called and with what additional arguments
61 | * nodeExecutableAndArgs: ["node"]
62 | *
63 | * // supply additional arguments to the packager
64 | * extraPackagerArgs: []
65 | * ]
66 | */
67 |
68 | apply from: "../../node_modules/react-native/react.gradle"
69 |
70 | /**
71 | * Set this to true to create two separate APKs instead of one:
72 | * - An APK that only works on ARM devices
73 | * - An APK that only works on x86 devices
74 | * The advantage is the size of the APK is reduced by about 4MB.
75 | * Upload all the APKs to the Play Store and people will download
76 | * the correct one based on the CPU architecture of their device.
77 | */
78 | def enableSeparateBuildPerCPUArchitecture = false
79 |
80 | /**
81 | * Run Proguard to shrink the Java bytecode in release builds.
82 | */
83 | def enableProguardInReleaseBuilds = false
84 |
85 | android {
86 | compileSdkVersion 23
87 | buildToolsVersion "23.0.1"
88 |
89 | defaultConfig {
90 | applicationId "com.examples"
91 | minSdkVersion 16
92 | targetSdkVersion 22
93 | versionCode 1
94 | versionName "1.0"
95 | ndk {
96 | abiFilters "armeabi-v7a", "x86"
97 | }
98 | }
99 | splits {
100 | abi {
101 | reset()
102 | enable enableSeparateBuildPerCPUArchitecture
103 | universalApk false // If true, also generate a universal APK
104 | include "armeabi-v7a", "x86"
105 | }
106 | }
107 | buildTypes {
108 | release {
109 | minifyEnabled enableProguardInReleaseBuilds
110 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
111 | }
112 | }
113 | // applicationVariants are e.g. debug, release
114 | applicationVariants.all { variant ->
115 | variant.outputs.each { output ->
116 | // For each separate APK per architecture, set a unique version code as described here:
117 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
118 | def versionCodes = ["armeabi-v7a":1, "x86":2]
119 | def abi = output.getFilter(OutputFile.ABI)
120 | if (abi != null) { // null for the universal-debug, universal-release variants
121 | output.versionCodeOverride =
122 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
123 | }
124 | }
125 | }
126 | }
127 |
128 | dependencies {
129 | compile fileTree(dir: "libs", include: ["*.jar"])
130 | compile "com.android.support:appcompat-v7:23.0.1"
131 | compile "com.facebook.react:react-native:+" // From node_modules
132 | }
133 |
134 | // Run this once to be able to run the application with BUCK
135 | // puts all compile dependencies into folder libs for BUCK to use
136 | task copyDownloadableDepsToLibs(type: Copy) {
137 | from configurations.compile
138 | into 'libs'
139 | }
140 |
--------------------------------------------------------------------------------
/examples/Ripple/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: "com.android.application"
2 |
3 | import com.android.build.OutputFile
4 |
5 | /**
6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
7 | * and bundleReleaseJsAndAssets).
8 | * These basically call `react-native bundle` with the correct arguments during the Android build
9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
10 | * bundle directly from the development server. Below you can see all the possible configurations
11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the
12 | * `apply from: "../../node_modules/react-native/react.gradle"` line.
13 | *
14 | * project.ext.react = [
15 | * // the name of the generated asset file containing your JS bundle
16 | * bundleAssetName: "index.android.bundle",
17 | *
18 | * // the entry file for bundle generation
19 | * entryFile: "index.android.js",
20 | *
21 | * // whether to bundle JS and assets in debug mode
22 | * bundleInDebug: false,
23 | *
24 | * // whether to bundle JS and assets in release mode
25 | * bundleInRelease: true,
26 | *
27 | * // whether to bundle JS and assets in another build variant (if configured).
28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
29 | * // The configuration property can be in the following formats
30 | * // 'bundleIn${productFlavor}${buildType}'
31 | * // 'bundleIn${buildType}'
32 | * // bundleInFreeDebug: true,
33 | * // bundleInPaidRelease: true,
34 | * // bundleInBeta: true,
35 | *
36 | * // the root of your project, i.e. where "package.json" lives
37 | * root: "../../",
38 | *
39 | * // where to put the JS bundle asset in debug mode
40 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
41 | *
42 | * // where to put the JS bundle asset in release mode
43 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
44 | *
45 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
46 | * // require('./image.png')), in debug mode
47 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
48 | *
49 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
50 | * // require('./image.png')), in release mode
51 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
52 | *
53 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
54 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
55 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle
56 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
57 | * // for example, you might want to remove it from here.
58 | * inputExcludes: ["android/**", "ios/**"],
59 | *
60 | * // override which node gets called and with what additional arguments
61 | * nodeExecutableAndArgs: ["node"]
62 | *
63 | * // supply additional arguments to the packager
64 | * extraPackagerArgs: []
65 | * ]
66 | */
67 |
68 | apply from: "../../node_modules/react-native/react.gradle"
69 |
70 | /**
71 | * Set this to true to create two separate APKs instead of one:
72 | * - An APK that only works on ARM devices
73 | * - An APK that only works on x86 devices
74 | * The advantage is the size of the APK is reduced by about 4MB.
75 | * Upload all the APKs to the Play Store and people will download
76 | * the correct one based on the CPU architecture of their device.
77 | */
78 | def enableSeparateBuildPerCPUArchitecture = false
79 |
80 | /**
81 | * Run Proguard to shrink the Java bytecode in release builds.
82 | */
83 | def enableProguardInReleaseBuilds = false
84 |
85 | android {
86 | compileSdkVersion 23
87 | buildToolsVersion "23.0.1"
88 |
89 | defaultConfig {
90 | applicationId "com.ripple"
91 | minSdkVersion 16
92 | targetSdkVersion 22
93 | versionCode 1
94 | versionName "1.0"
95 | ndk {
96 | abiFilters "armeabi-v7a", "x86"
97 | }
98 | }
99 | splits {
100 | abi {
101 | reset()
102 | enable enableSeparateBuildPerCPUArchitecture
103 | universalApk false // If true, also generate a universal APK
104 | include "armeabi-v7a", "x86"
105 | }
106 | }
107 | buildTypes {
108 | release {
109 | minifyEnabled enableProguardInReleaseBuilds
110 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
111 | }
112 | }
113 | // applicationVariants are e.g. debug, release
114 | applicationVariants.all { variant ->
115 | variant.outputs.each { output ->
116 | // For each separate APK per architecture, set a unique version code as described here:
117 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
118 | def versionCodes = ["armeabi-v7a":1, "x86":2]
119 | def abi = output.getFilter(OutputFile.ABI)
120 | if (abi != null) { // null for the universal-debug, universal-release variants
121 | output.versionCodeOverride =
122 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
123 | }
124 | }
125 | }
126 | }
127 |
128 | dependencies {
129 | compile fileTree(dir: "libs", include: ["*.jar"])
130 | compile "com.android.support:appcompat-v7:23.0.1"
131 | compile "com.facebook.react:react-native:+" // From node_modules
132 | }
133 |
134 | // Run this once to be able to run the application with BUCK
135 | // puts all compile dependencies into folder libs for BUCK to use
136 | task copyDownloadableDepsToLibs(type: Copy) {
137 | from configurations.compile
138 | into 'libs'
139 | }
140 |
--------------------------------------------------------------------------------
/yarn.lock:
--------------------------------------------------------------------------------
1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2 | # yarn lockfile v1
3 |
4 |
5 | abbrev@1:
6 | version "1.1.1"
7 | resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8"
8 |
9 | ajv@^4.9.1:
10 | version "4.11.8"
11 | resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536"
12 | dependencies:
13 | co "^4.6.0"
14 | json-stable-stringify "^1.0.1"
15 |
16 | ansi-regex@^2.0.0:
17 | version "2.1.1"
18 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df"
19 |
20 | anymatch@^1.3.0:
21 | version "1.3.2"
22 | resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.2.tgz#553dcb8f91e3c889845dfdba34c77721b90b9d7a"
23 | dependencies:
24 | micromatch "^2.1.5"
25 | normalize-path "^2.0.0"
26 |
27 | aproba@^1.0.3:
28 | version "1.2.0"
29 | resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a"
30 |
31 | are-we-there-yet@~1.1.2:
32 | version "1.1.4"
33 | resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz#bb5dca382bb94f05e15194373d16fd3ba1ca110d"
34 | dependencies:
35 | delegates "^1.0.0"
36 | readable-stream "^2.0.6"
37 |
38 | arr-diff@^2.0.0:
39 | version "2.0.0"
40 | resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf"
41 | dependencies:
42 | arr-flatten "^1.0.1"
43 |
44 | arr-flatten@^1.0.1:
45 | version "1.1.0"
46 | resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1"
47 |
48 | array-filter@~0.0.0:
49 | version "0.0.1"
50 | resolved "https://registry.yarnpkg.com/array-filter/-/array-filter-0.0.1.tgz#7da8cf2e26628ed732803581fd21f67cacd2eeec"
51 |
52 | array-map@~0.0.0:
53 | version "0.0.0"
54 | resolved "https://registry.yarnpkg.com/array-map/-/array-map-0.0.0.tgz#88a2bab73d1cf7bcd5c1b118a003f66f665fa662"
55 |
56 | array-reduce@~0.0.0:
57 | version "0.0.0"
58 | resolved "https://registry.yarnpkg.com/array-reduce/-/array-reduce-0.0.0.tgz#173899d3ffd1c7d9383e4479525dbe278cab5f2b"
59 |
60 | array-unique@^0.2.1:
61 | version "0.2.1"
62 | resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53"
63 |
64 | asap@~2.0.3:
65 | version "2.0.6"
66 | resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46"
67 |
68 | asn1@~0.2.3:
69 | version "0.2.3"
70 | resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86"
71 |
72 | assert-plus@1.0.0, assert-plus@^1.0.0:
73 | version "1.0.0"
74 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525"
75 |
76 | assert-plus@^0.2.0:
77 | version "0.2.0"
78 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234"
79 |
80 | async-each@^1.0.0:
81 | version "1.0.1"
82 | resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d"
83 |
84 | asynckit@^0.4.0:
85 | version "0.4.0"
86 | resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"
87 |
88 | aws-sign2@~0.6.0:
89 | version "0.6.0"
90 | resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f"
91 |
92 | aws4@^1.2.1:
93 | version "1.6.0"
94 | resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e"
95 |
96 | babel-runtime@^6.9.2:
97 | version "6.26.0"
98 | resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe"
99 | dependencies:
100 | core-js "^2.4.0"
101 | regenerator-runtime "^0.11.0"
102 |
103 | balanced-match@^1.0.0:
104 | version "1.0.0"
105 | resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
106 |
107 | bcrypt-pbkdf@^1.0.0:
108 | version "1.0.1"
109 | resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz#63bc5dcb61331b92bc05fd528953c33462a06f8d"
110 | dependencies:
111 | tweetnacl "^0.14.3"
112 |
113 | binary-extensions@^1.0.0:
114 | version "1.11.0"
115 | resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.11.0.tgz#46aa1751fb6a2f93ee5e689bb1087d4b14c6c205"
116 |
117 | block-stream@*:
118 | version "0.0.9"
119 | resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a"
120 | dependencies:
121 | inherits "~2.0.0"
122 |
123 | boom@2.x.x:
124 | version "2.10.1"
125 | resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f"
126 | dependencies:
127 | hoek "2.x.x"
128 |
129 | brace-expansion@^1.1.7:
130 | version "1.1.11"
131 | resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
132 | dependencies:
133 | balanced-match "^1.0.0"
134 | concat-map "0.0.1"
135 |
136 | braces@^1.8.2:
137 | version "1.8.5"
138 | resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7"
139 | dependencies:
140 | expand-range "^1.8.1"
141 | preserve "^0.2.0"
142 | repeat-element "^1.1.2"
143 |
144 | caseless@~0.12.0:
145 | version "0.12.0"
146 | resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"
147 |
148 | chokidar@^1.6.0:
149 | version "1.7.0"
150 | resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468"
151 | dependencies:
152 | anymatch "^1.3.0"
153 | async-each "^1.0.0"
154 | glob-parent "^2.0.0"
155 | inherits "^2.0.1"
156 | is-binary-path "^1.0.0"
157 | is-glob "^2.0.0"
158 | path-is-absolute "^1.0.0"
159 | readdirp "^2.0.0"
160 | optionalDependencies:
161 | fsevents "^1.0.0"
162 |
163 | co@^4.6.0:
164 | version "4.6.0"
165 | resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184"
166 |
167 | code-point-at@^1.0.0:
168 | version "1.1.0"
169 | resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
170 |
171 | combined-stream@^1.0.5, combined-stream@~1.0.5:
172 | version "1.0.6"
173 | resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.6.tgz#723e7df6e801ac5613113a7e445a9b69cb632818"
174 | dependencies:
175 | delayed-stream "~1.0.0"
176 |
177 | concat-map@0.0.1:
178 | version "0.0.1"
179 | resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
180 |
181 | console-control-strings@^1.0.0, console-control-strings@~1.1.0:
182 | version "1.1.0"
183 | resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e"
184 |
185 | core-js@^1.0.0:
186 | version "1.2.7"
187 | resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636"
188 |
189 | core-js@^2.4.0:
190 | version "2.5.3"
191 | resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.3.tgz#8acc38345824f16d8365b7c9b4259168e8ed603e"
192 |
193 | core-util-is@1.0.2, core-util-is@~1.0.0:
194 | version "1.0.2"
195 | resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
196 |
197 | cpx@^1.5.0:
198 | version "1.5.0"
199 | resolved "https://registry.yarnpkg.com/cpx/-/cpx-1.5.0.tgz#185be018511d87270dedccc293171e37655ab88f"
200 | dependencies:
201 | babel-runtime "^6.9.2"
202 | chokidar "^1.6.0"
203 | duplexer "^0.1.1"
204 | glob "^7.0.5"
205 | glob2base "^0.0.12"
206 | minimatch "^3.0.2"
207 | mkdirp "^0.5.1"
208 | resolve "^1.1.7"
209 | safe-buffer "^5.0.1"
210 | shell-quote "^1.6.1"
211 | subarg "^1.0.0"
212 |
213 | cryptiles@2.x.x:
214 | version "2.0.5"
215 | resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8"
216 | dependencies:
217 | boom "2.x.x"
218 |
219 | dashdash@^1.12.0:
220 | version "1.14.1"
221 | resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0"
222 | dependencies:
223 | assert-plus "^1.0.0"
224 |
225 | debug@^2.2.0:
226 | version "2.6.9"
227 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
228 | dependencies:
229 | ms "2.0.0"
230 |
231 | deep-extend@~0.4.0:
232 | version "0.4.2"
233 | resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.2.tgz#48b699c27e334bf89f10892be432f6e4c7d34a7f"
234 |
235 | delayed-stream@~1.0.0:
236 | version "1.0.0"
237 | resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619"
238 |
239 | delegates@^1.0.0:
240 | version "1.0.0"
241 | resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a"
242 |
243 | detect-libc@^1.0.2:
244 | version "1.0.3"
245 | resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b"
246 |
247 | duplexer@^0.1.1:
248 | version "0.1.1"
249 | resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.1.tgz#ace6ff808c1ce66b57d1ebf97977acb02334cfc1"
250 |
251 | ecc-jsbn@~0.1.1:
252 | version "0.1.1"
253 | resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505"
254 | dependencies:
255 | jsbn "~0.1.0"
256 |
257 | encoding@^0.1.11:
258 | version "0.1.12"
259 | resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.12.tgz#538b66f3ee62cd1ab51ec323829d1f9480c74beb"
260 | dependencies:
261 | iconv-lite "~0.4.13"
262 |
263 | expand-brackets@^0.1.4:
264 | version "0.1.5"
265 | resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b"
266 | dependencies:
267 | is-posix-bracket "^0.1.0"
268 |
269 | expand-range@^1.8.1:
270 | version "1.8.2"
271 | resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337"
272 | dependencies:
273 | fill-range "^2.1.0"
274 |
275 | extend@~3.0.0:
276 | version "3.0.1"
277 | resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444"
278 |
279 | extglob@^0.3.1:
280 | version "0.3.2"
281 | resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1"
282 | dependencies:
283 | is-extglob "^1.0.0"
284 |
285 | extsprintf@1.3.0:
286 | version "1.3.0"
287 | resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05"
288 |
289 | extsprintf@^1.2.0:
290 | version "1.4.0"
291 | resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f"
292 |
293 | fbjs@^0.8.16:
294 | version "0.8.16"
295 | resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.16.tgz#5e67432f550dc41b572bf55847b8aca64e5337db"
296 | dependencies:
297 | core-js "^1.0.0"
298 | isomorphic-fetch "^2.1.1"
299 | loose-envify "^1.0.0"
300 | object-assign "^4.1.0"
301 | promise "^7.1.1"
302 | setimmediate "^1.0.5"
303 | ua-parser-js "^0.7.9"
304 |
305 | filename-regex@^2.0.0:
306 | version "2.0.1"
307 | resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26"
308 |
309 | fill-range@^2.1.0:
310 | version "2.2.3"
311 | resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.3.tgz#50b77dfd7e469bc7492470963699fe7a8485a723"
312 | dependencies:
313 | is-number "^2.1.0"
314 | isobject "^2.0.0"
315 | randomatic "^1.1.3"
316 | repeat-element "^1.1.2"
317 | repeat-string "^1.5.2"
318 |
319 | find-index@^0.1.1:
320 | version "0.1.1"
321 | resolved "https://registry.yarnpkg.com/find-index/-/find-index-0.1.1.tgz#675d358b2ca3892d795a1ab47232f8b6e2e0dde4"
322 |
323 | for-in@^1.0.1:
324 | version "1.0.2"
325 | resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"
326 |
327 | for-own@^0.1.4:
328 | version "0.1.5"
329 | resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce"
330 | dependencies:
331 | for-in "^1.0.1"
332 |
333 | forever-agent@~0.6.1:
334 | version "0.6.1"
335 | resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91"
336 |
337 | form-data@~2.1.1:
338 | version "2.1.4"
339 | resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.4.tgz#33c183acf193276ecaa98143a69e94bfee1750d1"
340 | dependencies:
341 | asynckit "^0.4.0"
342 | combined-stream "^1.0.5"
343 | mime-types "^2.1.12"
344 |
345 | fs.realpath@^1.0.0:
346 | version "1.0.0"
347 | resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
348 |
349 | fsevents@^1.0.0:
350 | version "1.1.3"
351 | resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.1.3.tgz#11f82318f5fe7bb2cd22965a108e9306208216d8"
352 | dependencies:
353 | nan "^2.3.0"
354 | node-pre-gyp "^0.6.39"
355 |
356 | fstream-ignore@^1.0.5:
357 | version "1.0.5"
358 | resolved "https://registry.yarnpkg.com/fstream-ignore/-/fstream-ignore-1.0.5.tgz#9c31dae34767018fe1d249b24dada67d092da105"
359 | dependencies:
360 | fstream "^1.0.0"
361 | inherits "2"
362 | minimatch "^3.0.0"
363 |
364 | fstream@^1.0.0, fstream@^1.0.10, fstream@^1.0.2:
365 | version "1.0.11"
366 | resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.11.tgz#5c1fb1f117477114f0632a0eb4b71b3cb0fd3171"
367 | dependencies:
368 | graceful-fs "^4.1.2"
369 | inherits "~2.0.0"
370 | mkdirp ">=0.5 0"
371 | rimraf "2"
372 |
373 | gauge@~2.7.3:
374 | version "2.7.4"
375 | resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7"
376 | dependencies:
377 | aproba "^1.0.3"
378 | console-control-strings "^1.0.0"
379 | has-unicode "^2.0.0"
380 | object-assign "^4.1.0"
381 | signal-exit "^3.0.0"
382 | string-width "^1.0.1"
383 | strip-ansi "^3.0.1"
384 | wide-align "^1.1.0"
385 |
386 | getpass@^0.1.1:
387 | version "0.1.7"
388 | resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa"
389 | dependencies:
390 | assert-plus "^1.0.0"
391 |
392 | glob-base@^0.3.0:
393 | version "0.3.0"
394 | resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4"
395 | dependencies:
396 | glob-parent "^2.0.0"
397 | is-glob "^2.0.0"
398 |
399 | glob-parent@^2.0.0:
400 | version "2.0.0"
401 | resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28"
402 | dependencies:
403 | is-glob "^2.0.0"
404 |
405 | glob2base@^0.0.12:
406 | version "0.0.12"
407 | resolved "https://registry.yarnpkg.com/glob2base/-/glob2base-0.0.12.tgz#9d419b3e28f12e83a362164a277055922c9c0d56"
408 | dependencies:
409 | find-index "^0.1.1"
410 |
411 | glob@^7.0.5:
412 | version "7.1.2"
413 | resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15"
414 | dependencies:
415 | fs.realpath "^1.0.0"
416 | inflight "^1.0.4"
417 | inherits "2"
418 | minimatch "^3.0.4"
419 | once "^1.3.0"
420 | path-is-absolute "^1.0.0"
421 |
422 | graceful-fs@^4.1.2:
423 | version "4.1.11"
424 | resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"
425 |
426 | har-schema@^1.0.5:
427 | version "1.0.5"
428 | resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-1.0.5.tgz#d263135f43307c02c602afc8fe95970c0151369e"
429 |
430 | har-validator@~4.2.1:
431 | version "4.2.1"
432 | resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-4.2.1.tgz#33481d0f1bbff600dd203d75812a6a5fba002e2a"
433 | dependencies:
434 | ajv "^4.9.1"
435 | har-schema "^1.0.5"
436 |
437 | has-unicode@^2.0.0:
438 | version "2.0.1"
439 | resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9"
440 |
441 | hawk@3.1.3, hawk@~3.1.3:
442 | version "3.1.3"
443 | resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4"
444 | dependencies:
445 | boom "2.x.x"
446 | cryptiles "2.x.x"
447 | hoek "2.x.x"
448 | sntp "1.x.x"
449 |
450 | hoek@2.x.x:
451 | version "2.16.3"
452 | resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed"
453 |
454 | http-signature@~1.1.0:
455 | version "1.1.1"
456 | resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf"
457 | dependencies:
458 | assert-plus "^0.2.0"
459 | jsprim "^1.2.2"
460 | sshpk "^1.7.0"
461 |
462 | iconv-lite@~0.4.13:
463 | version "0.4.19"
464 | resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b"
465 |
466 | inflight@^1.0.4:
467 | version "1.0.6"
468 | resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
469 | dependencies:
470 | once "^1.3.0"
471 | wrappy "1"
472 |
473 | inherits@2, inherits@^2.0.1, inherits@~2.0.0, inherits@~2.0.3:
474 | version "2.0.3"
475 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de"
476 |
477 | ini@~1.3.0:
478 | version "1.3.5"
479 | resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927"
480 |
481 | is-binary-path@^1.0.0:
482 | version "1.0.1"
483 | resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898"
484 | dependencies:
485 | binary-extensions "^1.0.0"
486 |
487 | is-buffer@^1.1.5:
488 | version "1.1.6"
489 | resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be"
490 |
491 | is-dotfile@^1.0.0:
492 | version "1.0.3"
493 | resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1"
494 |
495 | is-equal-shallow@^0.1.3:
496 | version "0.1.3"
497 | resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534"
498 | dependencies:
499 | is-primitive "^2.0.0"
500 |
501 | is-extendable@^0.1.1:
502 | version "0.1.1"
503 | resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89"
504 |
505 | is-extglob@^1.0.0:
506 | version "1.0.0"
507 | resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0"
508 |
509 | is-fullwidth-code-point@^1.0.0:
510 | version "1.0.0"
511 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb"
512 | dependencies:
513 | number-is-nan "^1.0.0"
514 |
515 | is-glob@^2.0.0, is-glob@^2.0.1:
516 | version "2.0.1"
517 | resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863"
518 | dependencies:
519 | is-extglob "^1.0.0"
520 |
521 | is-number@^2.1.0:
522 | version "2.1.0"
523 | resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f"
524 | dependencies:
525 | kind-of "^3.0.2"
526 |
527 | is-number@^3.0.0:
528 | version "3.0.0"
529 | resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195"
530 | dependencies:
531 | kind-of "^3.0.2"
532 |
533 | is-posix-bracket@^0.1.0:
534 | version "0.1.1"
535 | resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4"
536 |
537 | is-primitive@^2.0.0:
538 | version "2.0.0"
539 | resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575"
540 |
541 | is-stream@^1.0.1:
542 | version "1.1.0"
543 | resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44"
544 |
545 | is-typedarray@~1.0.0:
546 | version "1.0.0"
547 | resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a"
548 |
549 | isarray@1.0.0, isarray@~1.0.0:
550 | version "1.0.0"
551 | resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
552 |
553 | isobject@^2.0.0:
554 | version "2.1.0"
555 | resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89"
556 | dependencies:
557 | isarray "1.0.0"
558 |
559 | isomorphic-fetch@^2.1.1:
560 | version "2.2.1"
561 | resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9"
562 | dependencies:
563 | node-fetch "^1.0.1"
564 | whatwg-fetch ">=0.10.0"
565 |
566 | isstream@~0.1.2:
567 | version "0.1.2"
568 | resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"
569 |
570 | js-tokens@^3.0.0:
571 | version "3.0.2"
572 | resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b"
573 |
574 | jsbn@~0.1.0:
575 | version "0.1.1"
576 | resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513"
577 |
578 | json-schema@0.2.3:
579 | version "0.2.3"
580 | resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13"
581 |
582 | json-stable-stringify@^1.0.1:
583 | version "1.0.1"
584 | resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af"
585 | dependencies:
586 | jsonify "~0.0.0"
587 |
588 | json-stringify-safe@~5.0.1:
589 | version "5.0.1"
590 | resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb"
591 |
592 | jsonify@~0.0.0:
593 | version "0.0.0"
594 | resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73"
595 |
596 | jsprim@^1.2.2:
597 | version "1.4.1"
598 | resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2"
599 | dependencies:
600 | assert-plus "1.0.0"
601 | extsprintf "1.3.0"
602 | json-schema "0.2.3"
603 | verror "1.10.0"
604 |
605 | kind-of@^3.0.2:
606 | version "3.2.2"
607 | resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64"
608 | dependencies:
609 | is-buffer "^1.1.5"
610 |
611 | kind-of@^4.0.0:
612 | version "4.0.0"
613 | resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57"
614 | dependencies:
615 | is-buffer "^1.1.5"
616 |
617 | loose-envify@^1.0.0, loose-envify@^1.3.1:
618 | version "1.3.1"
619 | resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848"
620 | dependencies:
621 | js-tokens "^3.0.0"
622 |
623 | micromatch@^2.1.5:
624 | version "2.3.11"
625 | resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565"
626 | dependencies:
627 | arr-diff "^2.0.0"
628 | array-unique "^0.2.1"
629 | braces "^1.8.2"
630 | expand-brackets "^0.1.4"
631 | extglob "^0.3.1"
632 | filename-regex "^2.0.0"
633 | is-extglob "^1.0.0"
634 | is-glob "^2.0.1"
635 | kind-of "^3.0.2"
636 | normalize-path "^2.0.1"
637 | object.omit "^2.0.0"
638 | parse-glob "^3.0.4"
639 | regex-cache "^0.4.2"
640 |
641 | mime-db@~1.33.0:
642 | version "1.33.0"
643 | resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.33.0.tgz#a3492050a5cb9b63450541e39d9788d2272783db"
644 |
645 | mime-types@^2.1.12, mime-types@~2.1.7:
646 | version "2.1.18"
647 | resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.18.tgz#6f323f60a83d11146f831ff11fd66e2fe5503bb8"
648 | dependencies:
649 | mime-db "~1.33.0"
650 |
651 | minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4:
652 | version "3.0.4"
653 | resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
654 | dependencies:
655 | brace-expansion "^1.1.7"
656 |
657 | minimist@0.0.8:
658 | version "0.0.8"
659 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d"
660 |
661 | minimist@^1.1.0, minimist@^1.2.0:
662 | version "1.2.0"
663 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
664 |
665 | "mkdirp@>=0.5 0", mkdirp@^0.5.1:
666 | version "0.5.1"
667 | resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903"
668 | dependencies:
669 | minimist "0.0.8"
670 |
671 | ms@2.0.0:
672 | version "2.0.0"
673 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"
674 |
675 | nan@^2.3.0:
676 | version "2.9.2"
677 | resolved "https://registry.yarnpkg.com/nan/-/nan-2.9.2.tgz#f564d75f5f8f36a6d9456cca7a6c4fe488ab7866"
678 |
679 | node-fetch@^1.0.1:
680 | version "1.7.3"
681 | resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef"
682 | dependencies:
683 | encoding "^0.1.11"
684 | is-stream "^1.0.1"
685 |
686 | node-pre-gyp@^0.6.39:
687 | version "0.6.39"
688 | resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.6.39.tgz#c00e96860b23c0e1420ac7befc5044e1d78d8649"
689 | dependencies:
690 | detect-libc "^1.0.2"
691 | hawk "3.1.3"
692 | mkdirp "^0.5.1"
693 | nopt "^4.0.1"
694 | npmlog "^4.0.2"
695 | rc "^1.1.7"
696 | request "2.81.0"
697 | rimraf "^2.6.1"
698 | semver "^5.3.0"
699 | tar "^2.2.1"
700 | tar-pack "^3.4.0"
701 |
702 | nopt@^4.0.1:
703 | version "4.0.1"
704 | resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d"
705 | dependencies:
706 | abbrev "1"
707 | osenv "^0.1.4"
708 |
709 | normalize-path@^2.0.0, normalize-path@^2.0.1:
710 | version "2.1.1"
711 | resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9"
712 | dependencies:
713 | remove-trailing-separator "^1.0.1"
714 |
715 | npmlog@^4.0.2:
716 | version "4.1.2"
717 | resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b"
718 | dependencies:
719 | are-we-there-yet "~1.1.2"
720 | console-control-strings "~1.1.0"
721 | gauge "~2.7.3"
722 | set-blocking "~2.0.0"
723 |
724 | number-is-nan@^1.0.0:
725 | version "1.0.1"
726 | resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d"
727 |
728 | oauth-sign@~0.8.1:
729 | version "0.8.2"
730 | resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43"
731 |
732 | object-assign@^4.1.0, object-assign@^4.1.1:
733 | version "4.1.1"
734 | resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
735 |
736 | object.omit@^2.0.0:
737 | version "2.0.1"
738 | resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa"
739 | dependencies:
740 | for-own "^0.1.4"
741 | is-extendable "^0.1.1"
742 |
743 | once@^1.3.0, once@^1.3.3:
744 | version "1.4.0"
745 | resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
746 | dependencies:
747 | wrappy "1"
748 |
749 | os-homedir@^1.0.0:
750 | version "1.0.2"
751 | resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3"
752 |
753 | os-tmpdir@^1.0.0:
754 | version "1.0.2"
755 | resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274"
756 |
757 | osenv@^0.1.4:
758 | version "0.1.5"
759 | resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410"
760 | dependencies:
761 | os-homedir "^1.0.0"
762 | os-tmpdir "^1.0.0"
763 |
764 | parse-glob@^3.0.4:
765 | version "3.0.4"
766 | resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c"
767 | dependencies:
768 | glob-base "^0.3.0"
769 | is-dotfile "^1.0.0"
770 | is-extglob "^1.0.0"
771 | is-glob "^2.0.0"
772 |
773 | path-is-absolute@^1.0.0:
774 | version "1.0.1"
775 | resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
776 |
777 | path-parse@^1.0.5:
778 | version "1.0.5"
779 | resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1"
780 |
781 | performance-now@^0.2.0:
782 | version "0.2.0"
783 | resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5"
784 |
785 | preserve@^0.2.0:
786 | version "0.2.0"
787 | resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
788 |
789 | process-nextick-args@~2.0.0:
790 | version "2.0.0"
791 | resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa"
792 |
793 | promise@^7.1.1:
794 | version "7.3.1"
795 | resolved "https://registry.yarnpkg.com/promise/-/promise-7.3.1.tgz#064b72602b18f90f29192b8b1bc418ffd1ebd3bf"
796 | dependencies:
797 | asap "~2.0.3"
798 |
799 | prop-types@^15.6.1:
800 | version "15.6.1"
801 | resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.1.tgz#36644453564255ddda391191fb3a125cbdf654ca"
802 | dependencies:
803 | fbjs "^0.8.16"
804 | loose-envify "^1.3.1"
805 | object-assign "^4.1.1"
806 |
807 | punycode@^1.4.1:
808 | version "1.4.1"
809 | resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e"
810 |
811 | qs@~6.4.0:
812 | version "6.4.0"
813 | resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233"
814 |
815 | randomatic@^1.1.3:
816 | version "1.1.7"
817 | resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-1.1.7.tgz#c7abe9cc8b87c0baa876b19fde83fd464797e38c"
818 | dependencies:
819 | is-number "^3.0.0"
820 | kind-of "^4.0.0"
821 |
822 | rc@^1.1.7:
823 | version "1.2.5"
824 | resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.5.tgz#275cd687f6e3b36cc756baa26dfee80a790301fd"
825 | dependencies:
826 | deep-extend "~0.4.0"
827 | ini "~1.3.0"
828 | minimist "^1.2.0"
829 | strip-json-comments "~2.0.1"
830 |
831 | readable-stream@^2.0.2, readable-stream@^2.0.6, readable-stream@^2.1.4:
832 | version "2.3.5"
833 | resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.5.tgz#b4f85003a938cbb6ecbce2a124fb1012bd1a838d"
834 | dependencies:
835 | core-util-is "~1.0.0"
836 | inherits "~2.0.3"
837 | isarray "~1.0.0"
838 | process-nextick-args "~2.0.0"
839 | safe-buffer "~5.1.1"
840 | string_decoder "~1.0.3"
841 | util-deprecate "~1.0.1"
842 |
843 | readdirp@^2.0.0:
844 | version "2.1.0"
845 | resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78"
846 | dependencies:
847 | graceful-fs "^4.1.2"
848 | minimatch "^3.0.2"
849 | readable-stream "^2.0.2"
850 | set-immediate-shim "^1.0.1"
851 |
852 | regenerator-runtime@^0.11.0:
853 | version "0.11.1"
854 | resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9"
855 |
856 | regex-cache@^0.4.2:
857 | version "0.4.4"
858 | resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd"
859 | dependencies:
860 | is-equal-shallow "^0.1.3"
861 |
862 | remove-trailing-separator@^1.0.1:
863 | version "1.1.0"
864 | resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef"
865 |
866 | repeat-element@^1.1.2:
867 | version "1.1.2"
868 | resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a"
869 |
870 | repeat-string@^1.5.2:
871 | version "1.6.1"
872 | resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637"
873 |
874 | request@2.81.0:
875 | version "2.81.0"
876 | resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0"
877 | dependencies:
878 | aws-sign2 "~0.6.0"
879 | aws4 "^1.2.1"
880 | caseless "~0.12.0"
881 | combined-stream "~1.0.5"
882 | extend "~3.0.0"
883 | forever-agent "~0.6.1"
884 | form-data "~2.1.1"
885 | har-validator "~4.2.1"
886 | hawk "~3.1.3"
887 | http-signature "~1.1.0"
888 | is-typedarray "~1.0.0"
889 | isstream "~0.1.2"
890 | json-stringify-safe "~5.0.1"
891 | mime-types "~2.1.7"
892 | oauth-sign "~0.8.1"
893 | performance-now "^0.2.0"
894 | qs "~6.4.0"
895 | safe-buffer "^5.0.1"
896 | stringstream "~0.0.4"
897 | tough-cookie "~2.3.0"
898 | tunnel-agent "^0.6.0"
899 | uuid "^3.0.0"
900 |
901 | resolve@^1.1.7:
902 | version "1.5.0"
903 | resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.5.0.tgz#1f09acce796c9a762579f31b2c1cc4c3cddf9f36"
904 | dependencies:
905 | path-parse "^1.0.5"
906 |
907 | rimraf@2, rimraf@^2.5.1, rimraf@^2.6.1:
908 | version "2.6.2"
909 | resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36"
910 | dependencies:
911 | glob "^7.0.5"
912 |
913 | safe-buffer@^5.0.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1:
914 | version "5.1.1"
915 | resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853"
916 |
917 | semver@^5.3.0:
918 | version "5.5.0"
919 | resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab"
920 |
921 | set-blocking@~2.0.0:
922 | version "2.0.0"
923 | resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7"
924 |
925 | set-immediate-shim@^1.0.1:
926 | version "1.0.1"
927 | resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61"
928 |
929 | setimmediate@^1.0.5:
930 | version "1.0.5"
931 | resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285"
932 |
933 | shell-quote@^1.6.1:
934 | version "1.6.1"
935 | resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.6.1.tgz#f4781949cce402697127430ea3b3c5476f481767"
936 | dependencies:
937 | array-filter "~0.0.0"
938 | array-map "~0.0.0"
939 | array-reduce "~0.0.0"
940 | jsonify "~0.0.0"
941 |
942 | signal-exit@^3.0.0:
943 | version "3.0.2"
944 | resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d"
945 |
946 | sntp@1.x.x:
947 | version "1.0.9"
948 | resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198"
949 | dependencies:
950 | hoek "2.x.x"
951 |
952 | sshpk@^1.7.0:
953 | version "1.13.1"
954 | resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.13.1.tgz#512df6da6287144316dc4c18fe1cf1d940739be3"
955 | dependencies:
956 | asn1 "~0.2.3"
957 | assert-plus "^1.0.0"
958 | dashdash "^1.12.0"
959 | getpass "^0.1.1"
960 | optionalDependencies:
961 | bcrypt-pbkdf "^1.0.0"
962 | ecc-jsbn "~0.1.1"
963 | jsbn "~0.1.0"
964 | tweetnacl "~0.14.0"
965 |
966 | string-width@^1.0.1, string-width@^1.0.2:
967 | version "1.0.2"
968 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3"
969 | dependencies:
970 | code-point-at "^1.0.0"
971 | is-fullwidth-code-point "^1.0.0"
972 | strip-ansi "^3.0.0"
973 |
974 | string_decoder@~1.0.3:
975 | version "1.0.3"
976 | resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.0.3.tgz#0fc67d7c141825de94282dd536bec6b9bce860ab"
977 | dependencies:
978 | safe-buffer "~5.1.0"
979 |
980 | stringstream@~0.0.4:
981 | version "0.0.5"
982 | resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878"
983 |
984 | strip-ansi@^3.0.0, strip-ansi@^3.0.1:
985 | version "3.0.1"
986 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf"
987 | dependencies:
988 | ansi-regex "^2.0.0"
989 |
990 | strip-json-comments@~2.0.1:
991 | version "2.0.1"
992 | resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
993 |
994 | subarg@^1.0.0:
995 | version "1.0.0"
996 | resolved "https://registry.yarnpkg.com/subarg/-/subarg-1.0.0.tgz#f62cf17581e996b48fc965699f54c06ae268b8d2"
997 | dependencies:
998 | minimist "^1.1.0"
999 |
1000 | tar-pack@^3.4.0:
1001 | version "3.4.1"
1002 | resolved "https://registry.yarnpkg.com/tar-pack/-/tar-pack-3.4.1.tgz#e1dbc03a9b9d3ba07e896ad027317eb679a10a1f"
1003 | dependencies:
1004 | debug "^2.2.0"
1005 | fstream "^1.0.10"
1006 | fstream-ignore "^1.0.5"
1007 | once "^1.3.3"
1008 | readable-stream "^2.1.4"
1009 | rimraf "^2.5.1"
1010 | tar "^2.2.1"
1011 | uid-number "^0.0.6"
1012 |
1013 | tar@^2.2.1:
1014 | version "2.2.1"
1015 | resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz#8e4d2a256c0e2185c6b18ad694aec968b83cb1d1"
1016 | dependencies:
1017 | block-stream "*"
1018 | fstream "^1.0.2"
1019 | inherits "2"
1020 |
1021 | tough-cookie@~2.3.0:
1022 | version "2.3.4"
1023 | resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.4.tgz#ec60cee38ac675063ffc97a5c18970578ee83655"
1024 | dependencies:
1025 | punycode "^1.4.1"
1026 |
1027 | tunnel-agent@^0.6.0:
1028 | version "0.6.0"
1029 | resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd"
1030 | dependencies:
1031 | safe-buffer "^5.0.1"
1032 |
1033 | tweetnacl@^0.14.3, tweetnacl@~0.14.0:
1034 | version "0.14.5"
1035 | resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64"
1036 |
1037 | ua-parser-js@^0.7.9:
1038 | version "0.7.17"
1039 | resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.17.tgz#e9ec5f9498b9ec910e7ae3ac626a805c4d09ecac"
1040 |
1041 | uid-number@^0.0.6:
1042 | version "0.0.6"
1043 | resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81"
1044 |
1045 | util-deprecate@~1.0.1:
1046 | version "1.0.2"
1047 | resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
1048 |
1049 | uuid@^3.0.0:
1050 | version "3.2.1"
1051 | resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.2.1.tgz#12c528bb9d58d0b9265d9a2f6f0fe8be17ff1f14"
1052 |
1053 | verror@1.10.0:
1054 | version "1.10.0"
1055 | resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400"
1056 | dependencies:
1057 | assert-plus "^1.0.0"
1058 | core-util-is "1.0.2"
1059 | extsprintf "^1.2.0"
1060 |
1061 | whatwg-fetch@>=0.10.0:
1062 | version "2.0.3"
1063 | resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.3.tgz#9c84ec2dcf68187ff00bc64e1274b442176e1c84"
1064 |
1065 | wide-align@^1.1.0:
1066 | version "1.1.2"
1067 | resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.2.tgz#571e0f1b0604636ebc0dfc21b0339bbe31341710"
1068 | dependencies:
1069 | string-width "^1.0.2"
1070 |
1071 | wrappy@1:
1072 | version "1.0.2"
1073 | resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
1074 |
--------------------------------------------------------------------------------