├── .babelrc ├── .buckconfig ├── .flowconfig ├── .gitignore ├── .npmignore ├── .watchmanconfig ├── App.js ├── Example └── package.json ├── Images ├── AnimatedListView.gif ├── favorite_empty@2x.png ├── favorite_full@2x.png └── starAnimation.gif ├── README.md ├── Screens ├── AnimatedListViewScreen.js └── index.js ├── android ├── app │ ├── BUCK │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── rnanimationlib │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── mipmap-hdpi │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ └── ic_launcher.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── keystores │ ├── BUCK │ └── debug.keystore.properties └── settings.gradle ├── index.android.js ├── index.ios.js ├── ios ├── RNAnimationLib.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ └── RNAnimationLib.xcscheme └── RNAnimationLib │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ └── LaunchScreen.xib │ ├── Images.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json │ ├── Info.plist │ └── main.m ├── package.json └── src ├── AnimatedListView ├── AnimatedListView.js └── AnimatedListViewItem.js ├── BridgeNoiseMaker.js ├── FlipAnimatedImage └── FlipAnimatedImage.js └── index.js /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react-native"] 3 | } -------------------------------------------------------------------------------- /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | 3 | # We fork some components by platform. 4 | .*/*[.]android.js 5 | 6 | # Ignore templates with `@flow` in header 7 | .*/local-cli/generator.* 8 | 9 | # Ignore malformed json 10 | .*/node_modules/y18n/test/.*\.json 11 | 12 | # Ignore the website subdir 13 | /website/.* 14 | 15 | # Ignore BUCK generated dirs 16 | /\.buckd/ 17 | 18 | # Ignore unexpected extra @providesModule 19 | .*/node_modules/commoner/test/source/widget/share.js 20 | 21 | # Ignore duplicate module providers 22 | # For RN Apps installed via npm, "Libraries" folder is inside node_modules/react-native but in the source repo it is in the root 23 | .*/Libraries/react-native/React.js 24 | .*/Libraries/react-native/ReactNative.js 25 | .*/node_modules/jest-runtime/build/__tests__/.* 26 | 27 | [include] 28 | 29 | [libs] 30 | node_modules/react-native/Libraries/react-native/react-native-interface.js 31 | node_modules/react-native/flow 32 | flow/ 33 | 34 | [options] 35 | module.system=haste 36 | 37 | esproposal.class_static_fields=enable 38 | esproposal.class_instance_fields=enable 39 | 40 | experimental.strict_type_args=true 41 | 42 | munge_underscores=true 43 | 44 | module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub' 45 | 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' 46 | 47 | suppress_type=$FlowIssue 48 | suppress_type=$FlowFixMe 49 | suppress_type=$FixMe 50 | 51 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-3]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 52 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-3]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 53 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 54 | 55 | unsafe.enable_getters_and_setters=true 56 | 57 | [version] 58 | ^0.33.0 59 | -------------------------------------------------------------------------------- /.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/IJ 26 | # 27 | *.iml 28 | .idea 29 | .gradle 30 | local.properties 31 | 32 | # node.js 33 | # 34 | node_modules/ 35 | npm-debug.log 36 | 37 | # BUCK 38 | buck-out/ 39 | \.buckd/ 40 | android/app/libs 41 | android/keystores/debug.keystore 42 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | ios/ 2 | android/ 3 | index.ios.js/ 4 | index.android.js/ 5 | app.js/ 6 | Screens/ 7 | Images/ 8 | node_modules/ 9 | test/ 10 | Example/ -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /App.js: -------------------------------------------------------------------------------- 1 | import React, {Component} from 'react'; 2 | import { 3 | AppRegistry, 4 | StyleSheet, 5 | Text, 6 | View, 7 | ListView, 8 | TouchableOpacity, 9 | Image, 10 | AlertIOS 11 | } from 'react-native'; 12 | 13 | 14 | import {FlipAnimatedImage} from './src'; 15 | import {AnimatedListViewScreen} from './Screens' 16 | 17 | export default class App extends Component { 18 | 19 | constructor(props) { 20 | super(props); 21 | this.state = { 22 | example: undefined, 23 | starIsSelected: false, 24 | prettySwitchValue: false 25 | }; 26 | } 27 | 28 | render() { 29 | if (this.state.example) { 30 | const Example = this.state.example; 31 | return ; 32 | } 33 | return ( 34 | 35 | 36 | this.setState({example: AnimatedListViewScreen})}> 37 | 38 | Animated List View Screen 39 | 40 | 41 | 42 | 43 | this.setState({starIsSelected: !this.state.starIsSelected})} style={{margin: 30}}> 44 | 50 | 51 | 52 | 53 | 54 | 55 | ); 56 | } 57 | 58 | } 59 | 60 | const styles = StyleSheet.create({ 61 | container: { 62 | flex: 1, 63 | justifyContent: 'center', 64 | alignItems: 'center', 65 | backgroundColor: '#F5FCFF', 66 | }, 67 | buttonText: { 68 | color: 'blue', 69 | marginBottom: 20, 70 | fontSize: 20 71 | 72 | } 73 | }); 74 | 75 | AppRegistry.registerComponent('RNAnimationLib', () => RNAnimationLib); -------------------------------------------------------------------------------- /Example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Example", 3 | "version": "0.0.1", 4 | "scripts": { 5 | "start": "node node_modules/react-native/local-cli/cli.js start", 6 | "test": "jest" 7 | }, 8 | "publishConfig": { 9 | "registry": "https://registry.npmjs.org/" 10 | }, 11 | "dependencies": { 12 | "react": "15.3.2", 13 | "react-native": "0.36.1", 14 | "react-native-svg": "^4.3.1", 15 | "react-native-animation-library": "file:../" 16 | }, 17 | "jest": { 18 | "preset": "jest-react-native" 19 | }, 20 | "devDependencies": { 21 | "babel-jest": "16.0.0", 22 | "babel-preset-react-native": "1.9.0", 23 | "jest": "16.0.2", 24 | "jest-react-native": "16.0.0", 25 | "react-test-renderer": "15.3.2" 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Images/AnimatedListView.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-native-animation-library/5de245baa19a0083e4143b4c0449dd425151000f/Images/AnimatedListView.gif -------------------------------------------------------------------------------- /Images/favorite_empty@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-native-animation-library/5de245baa19a0083e4143b4c0449dd425151000f/Images/favorite_empty@2x.png -------------------------------------------------------------------------------- /Images/favorite_full@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-native-animation-library/5de245baa19a0083e4143b4c0449dd425151000f/Images/favorite_full@2x.png -------------------------------------------------------------------------------- /Images/starAnimation.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-native-animation-library/5de245baa19a0083e4143b4c0449dd425151000f/Images/starAnimation.gif -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # React Native Animation Library 2 | 3 | Animation library built in `JavaScript` only. 4 | All animation created with `Animated` API and boosted with `useNativeDriver` which uses the native animation by `RCTAnimation`. 5 | 6 | ## Components 7 | 8 | ### AnimatedListView 9 | 10 | Fade appearance `listView`. Based on `ListView` therefore all `ListView` props can be used. 11 | 12 | 13 | 14 | 15 | ####API 16 | 17 | animationsOption `[Object]` 18 | 19 | Props | Type | Description 20 | ------ | ----- | ----- 21 | `initialOpacity` | [Number] | Cell initial opacity, between 0-1 // default is 0.4 22 | `offsetY` | [Number] | Cell Y offset // default is 100 23 | `cellAnimationDelay` |[Number]| Cell animation delay. Multiple `cell#` * `cellAnimationDelay` // default is 200ms 24 | `duration` | [Number] | The animation duration in milliseconds`[Number]` // deafult is 800ms 25 | 26 | avoidAnimation `[Boolean]` // default is `false` 27 | 28 | 29 | 30 | ### `FlipAnimatedImage` 31 | 32 | 33 | 34 | #### API 35 | 36 | Props | Type | Description 37 | ------ | ----- | ----- 38 | `isSelected` | [Boolean] | The selection state of the component 39 | `selectedImage` | [Image] | The image to show when state is selected 40 | `unSelectedImage` |[Image]| The image to show when state is unselected 41 | `duration` | [Object] | The animation `Bounce` duration object `{bounceOut: [Number], bounceIn: [Number]}` 42 | 43 | 44 | #### Example 45 | ``` 46 | this.setState({starIsSelected: !this.state.starIsSelected})} 49 | style={{margin: 30}}> 50 | 51 | ')} 54 | selectedImage={require('')} 55 | duration={{bounceOut: 50, bounceIn: 100}} 56 | /> 57 | 58 | ``` 59 | 60 | 61 | -------------------------------------------------------------------------------- /Screens/AnimatedListViewScreen.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 | ListView, 14 | TouchableOpacity, 15 | } from 'react-native'; 16 | import {AnimatedListView} from './../src'; 17 | import FlatColors from 'flat-colors'; 18 | 19 | 20 | export default class AnimatedListViewScreen extends Component { 21 | 22 | constructor() { 23 | super(); 24 | const ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2}); 25 | this.state = { 26 | dataSource: ds.cloneWithRows(['row 1', 'row 2', 'row 3', 'row 4', 'row 5', 'row 6', 'row 7', 'row 8', 27 | 'row 1', 'row 2', 'row 3', 'row 4', 'row 5', 'row 6', 'row 7', 'row 8', 28 | 'row 1', 'row 2', 'row 3', 'row 4', 'row 5', 'row 6', 'row 7', 'row 8', 29 | 'row 1', 'row 2', 'row 3', 'row 4', 'row 5', 'row 6', 'row 7', 'row 8', 30 | 'row 1', 'row 2', 'row 3', 'row 4', 'row 5', 'row 6', 'row 7', 'row 8']), 31 | animatedListView: null 32 | }; 33 | } 34 | 35 | renderRow(rowData) { 36 | return ( 37 | 38 | {`${rowData}`} 39 | 40 | ) 41 | } 42 | 43 | 44 | 45 | render() { 46 | return ( 47 | 48 | this.state.animatedListView.performAnimation()} 51 | > 52 | Load List 53 | 54 | 55 | this.state.animatedListView = component} 57 | style={{backgroundColor: '#95a5a6'}} 58 | dataSource={this.state.dataSource} 59 | renderRow={(rowID) => this.renderRow(rowID)} 60 | animationOption={{ 61 | duration: 800, 62 | initialOpacity: 0, 63 | offsetY: 200, 64 | cellAnimationDelay: 200}} 65 | avoidAnimation={false} 66 | contentInset={{bottom: 10}} 67 | /> 68 | 69 | ); 70 | } 71 | } 72 | 73 | function getRandomColor() { 74 | return '#e67e22'; 75 | return FlatColors()[3]; 76 | var letters = '0123456789ABCDEF'; 77 | var color = '#'; 78 | for (var i = 0; i < 6; i++ ) { 79 | color += letters[Math.floor(Math.random() * 16)]; 80 | } 81 | return color; 82 | } 83 | 84 | const styles = StyleSheet.create({ 85 | container: { 86 | flex: 1, 87 | backgroundColor: '#F5FCFF', 88 | marginTop: 30 89 | }, 90 | welcome: { 91 | fontSize: 20, 92 | textAlign: 'center', 93 | margin: 10, 94 | }, 95 | instructions: { 96 | textAlign: 'center', 97 | color: '#333333', 98 | marginBottom: 5, 99 | }, 100 | }); 101 | 102 | -------------------------------------------------------------------------------- /Screens/index.js: -------------------------------------------------------------------------------- 1 | import AnimatedListViewScreen from './AnimatedListViewScreen'; 2 | 3 | export { 4 | AnimatedListViewScreen 5 | }; -------------------------------------------------------------------------------- /android/app/BUCK: -------------------------------------------------------------------------------- 1 | import re 2 | 3 | # To learn about Buck see [Docs](https://buckbuild.com/). 4 | # To run your application with Buck: 5 | # - install Buck 6 | # - `npm start` - to start the packager 7 | # - `cd android` 8 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 9 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 10 | # - `buck install -r android/app` - compile, install and run application 11 | # 12 | 13 | lib_deps = [] 14 | for jarfile in glob(['libs/*.jar']): 15 | name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile) 16 | lib_deps.append(':' + name) 17 | prebuilt_jar( 18 | name = name, 19 | binary_jar = jarfile, 20 | ) 21 | 22 | for aarfile in glob(['libs/*.aar']): 23 | name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile) 24 | lib_deps.append(':' + name) 25 | android_prebuilt_aar( 26 | name = name, 27 | aar = aarfile, 28 | ) 29 | 30 | android_library( 31 | name = 'all-libs', 32 | exported_deps = lib_deps 33 | ) 34 | 35 | android_library( 36 | name = 'app-code', 37 | srcs = glob([ 38 | 'src/main/java/**/*.java', 39 | ]), 40 | deps = [ 41 | ':all-libs', 42 | ':build_config', 43 | ':res', 44 | ], 45 | ) 46 | 47 | android_build_config( 48 | name = 'build_config', 49 | package = 'com.rnanimationlib', 50 | ) 51 | 52 | android_resource( 53 | name = 'res', 54 | res = 'src/main/res', 55 | package = 'com.rnanimationlib', 56 | ) 57 | 58 | android_binary( 59 | name = 'app', 60 | package_type = 'debug', 61 | manifest = 'src/main/AndroidManifest.xml', 62 | keystore = '//android/keystores:debug', 63 | deps = [ 64 | ':app-code', 65 | ], 66 | ) 67 | -------------------------------------------------------------------------------- /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.rnanimationlib" 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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 12 | 13 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/rnanimationlib/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.rnanimationlib; 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 "RNAnimationLib"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/rnanimationlib/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.rnanimationlib; 2 | 3 | import android.app.Application; 4 | import android.util.Log; 5 | 6 | import com.facebook.react.ReactApplication; 7 | import com.facebook.react.ReactInstanceManager; 8 | import com.facebook.react.ReactNativeHost; 9 | import com.facebook.react.ReactPackage; 10 | import com.facebook.react.shell.MainReactPackage; 11 | 12 | import java.util.Arrays; 13 | import java.util.List; 14 | 15 | public class MainApplication extends Application implements ReactApplication { 16 | 17 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 18 | @Override 19 | protected boolean getUseDeveloperSupport() { 20 | return BuildConfig.DEBUG; 21 | } 22 | 23 | @Override 24 | protected List getPackages() { 25 | return Arrays.asList( 26 | new MainReactPackage() 27 | ); 28 | } 29 | }; 30 | 31 | @Override 32 | public ReactNativeHost getReactNativeHost() { 33 | return mReactNativeHost; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-native-animation-library/5de245baa19a0083e4143b4c0449dd425151000f/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-native-animation-library/5de245baa19a0083e4143b4c0449dd425151000f/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-native-animation-library/5de245baa19a0083e4143b4c0449dd425151000f/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-native-animation-library/5de245baa19a0083e4143b4c0449dd425151000f/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | RNAnimationLib 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /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.1.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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-native-animation-library/5de245baa19a0083e4143b4c0449dd425151000f/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Dec 07 09:27:53 IST 2016 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = 'debug', 3 | store = 'debug.keystore', 4 | properties = 'debug.keystore.properties', 5 | visibility = [ 6 | 'PUBLIC', 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'RNAnimationLib' 2 | 3 | include ':app' 4 | -------------------------------------------------------------------------------- /index.android.js: -------------------------------------------------------------------------------- 1 | import React, {Component} from 'react'; 2 | import {AppRegistry} from 'react-native'; 3 | 4 | import App from './App'; 5 | 6 | 7 | export default class RNAnimationLib extends Component { 8 | render() { 9 | return ( 10 | 11 | ) 12 | } 13 | } 14 | 15 | 16 | AppRegistry.registerComponent('RNAnimationLib', () => RNAnimationLib); -------------------------------------------------------------------------------- /index.ios.js: -------------------------------------------------------------------------------- 1 | import React, {Component} from 'react'; 2 | import {AppRegistry} from 'react-native'; 3 | 4 | import App from './App'; 5 | 6 | 7 | export default class RNAnimationLib extends Component { 8 | render() { 9 | return ( 10 | 11 | ) 12 | } 13 | } 14 | 15 | 16 | AppRegistry.registerComponent('RNAnimationLib', () => RNAnimationLib); -------------------------------------------------------------------------------- /ios/RNAnimationLib.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 11 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 12 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 13 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 14 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 15 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 16 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 17 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 18 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 19 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 20 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 21 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 22 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 23 | 26F014F01DF58B8000A93F6D /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 26F014ED1DF58B7400A93F6D /* libRCTAnimation.a */; }; 24 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 25 | /* End PBXBuildFile section */ 26 | 27 | /* Begin PBXContainerItemProxy section */ 28 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 29 | isa = PBXContainerItemProxy; 30 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 31 | proxyType = 2; 32 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 33 | remoteInfo = RCTActionSheet; 34 | }; 35 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 36 | isa = PBXContainerItemProxy; 37 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 38 | proxyType = 2; 39 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 40 | remoteInfo = RCTGeolocation; 41 | }; 42 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 43 | isa = PBXContainerItemProxy; 44 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 45 | proxyType = 2; 46 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 47 | remoteInfo = RCTImage; 48 | }; 49 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 50 | isa = PBXContainerItemProxy; 51 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 52 | proxyType = 2; 53 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 54 | remoteInfo = RCTNetwork; 55 | }; 56 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 57 | isa = PBXContainerItemProxy; 58 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 59 | proxyType = 2; 60 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 61 | remoteInfo = RCTVibration; 62 | }; 63 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 64 | isa = PBXContainerItemProxy; 65 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 66 | proxyType = 2; 67 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 68 | remoteInfo = RCTSettings; 69 | }; 70 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 71 | isa = PBXContainerItemProxy; 72 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 73 | proxyType = 2; 74 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 75 | remoteInfo = RCTWebSocket; 76 | }; 77 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 78 | isa = PBXContainerItemProxy; 79 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 80 | proxyType = 2; 81 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 82 | remoteInfo = React; 83 | }; 84 | 2615107D1DCB8D4100CF1D81 /* PBXContainerItemProxy */ = { 85 | isa = PBXContainerItemProxy; 86 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 87 | proxyType = 2; 88 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 89 | remoteInfo = "RCTImage-tvOS"; 90 | }; 91 | 261510811DCB8D4100CF1D81 /* PBXContainerItemProxy */ = { 92 | isa = PBXContainerItemProxy; 93 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 94 | proxyType = 2; 95 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 96 | remoteInfo = "RCTLinking-tvOS"; 97 | }; 98 | 261510851DCB8D4100CF1D81 /* PBXContainerItemProxy */ = { 99 | isa = PBXContainerItemProxy; 100 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 101 | proxyType = 2; 102 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 103 | remoteInfo = "RCTNetwork-tvOS"; 104 | }; 105 | 261510891DCB8D4100CF1D81 /* PBXContainerItemProxy */ = { 106 | isa = PBXContainerItemProxy; 107 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 108 | proxyType = 2; 109 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 110 | remoteInfo = "RCTSettings-tvOS"; 111 | }; 112 | 2615108D1DCB8D4100CF1D81 /* PBXContainerItemProxy */ = { 113 | isa = PBXContainerItemProxy; 114 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 115 | proxyType = 2; 116 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 117 | remoteInfo = "RCTText-tvOS"; 118 | }; 119 | 261510921DCB8D4100CF1D81 /* PBXContainerItemProxy */ = { 120 | isa = PBXContainerItemProxy; 121 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 122 | proxyType = 2; 123 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 124 | remoteInfo = "RCTWebSocket-tvOS"; 125 | }; 126 | 261510961DCB8D4100CF1D81 /* PBXContainerItemProxy */ = { 127 | isa = PBXContainerItemProxy; 128 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 129 | proxyType = 2; 130 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 131 | remoteInfo = "React-tvOS"; 132 | }; 133 | 26F014EC1DF58B7400A93F6D /* PBXContainerItemProxy */ = { 134 | isa = PBXContainerItemProxy; 135 | containerPortal = 26F014E71DF58B7400A93F6D /* RCTAnimation.xcodeproj */; 136 | proxyType = 2; 137 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 138 | remoteInfo = RCTAnimation; 139 | }; 140 | 26F014EE1DF58B7400A93F6D /* PBXContainerItemProxy */ = { 141 | isa = PBXContainerItemProxy; 142 | containerPortal = 26F014E71DF58B7400A93F6D /* RCTAnimation.xcodeproj */; 143 | proxyType = 2; 144 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 145 | remoteInfo = "RCTAnimation-tvOS"; 146 | }; 147 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 148 | isa = PBXContainerItemProxy; 149 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 150 | proxyType = 2; 151 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 152 | remoteInfo = RCTLinking; 153 | }; 154 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 155 | isa = PBXContainerItemProxy; 156 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 157 | proxyType = 2; 158 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 159 | remoteInfo = RCTText; 160 | }; 161 | /* End PBXContainerItemProxy section */ 162 | 163 | /* Begin PBXFileReference section */ 164 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 165 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 166 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 167 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 168 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 169 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 170 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 171 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 172 | 13B07F961A680F5B00A75B9A /* RNAnimationLib.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RNAnimationLib.app; sourceTree = BUILT_PRODUCTS_DIR; }; 173 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = RNAnimationLib/AppDelegate.h; sourceTree = ""; }; 174 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = RNAnimationLib/AppDelegate.m; sourceTree = ""; }; 175 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 176 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = RNAnimationLib/Images.xcassets; sourceTree = ""; }; 177 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = RNAnimationLib/Info.plist; sourceTree = ""; }; 178 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = RNAnimationLib/main.m; sourceTree = ""; }; 179 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 180 | 26F014E71DF58B7400A93F6D /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 181 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 182 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 183 | /* End PBXFileReference section */ 184 | 185 | /* Begin PBXFrameworksBuildPhase section */ 186 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 187 | isa = PBXFrameworksBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | 26F014F01DF58B8000A93F6D /* libRCTAnimation.a in Frameworks */, 191 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 192 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 193 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 194 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 195 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 196 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 197 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 198 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 199 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 200 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 201 | ); 202 | runOnlyForDeploymentPostprocessing = 0; 203 | }; 204 | /* End PBXFrameworksBuildPhase section */ 205 | 206 | /* Begin PBXGroup section */ 207 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 208 | isa = PBXGroup; 209 | children = ( 210 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 211 | ); 212 | name = Products; 213 | sourceTree = ""; 214 | }; 215 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 216 | isa = PBXGroup; 217 | children = ( 218 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 219 | ); 220 | name = Products; 221 | sourceTree = ""; 222 | }; 223 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 224 | isa = PBXGroup; 225 | children = ( 226 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 227 | 2615107E1DCB8D4100CF1D81 /* libRCTImage-tvOS.a */, 228 | ); 229 | name = Products; 230 | sourceTree = ""; 231 | }; 232 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 233 | isa = PBXGroup; 234 | children = ( 235 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 236 | 261510861DCB8D4100CF1D81 /* libRCTNetwork-tvOS.a */, 237 | ); 238 | name = Products; 239 | sourceTree = ""; 240 | }; 241 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 242 | isa = PBXGroup; 243 | children = ( 244 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 245 | ); 246 | name = Products; 247 | sourceTree = ""; 248 | }; 249 | 139105B71AF99BAD00B5F7CC /* Products */ = { 250 | isa = PBXGroup; 251 | children = ( 252 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 253 | 2615108A1DCB8D4100CF1D81 /* libRCTSettings-tvOS.a */, 254 | ); 255 | name = Products; 256 | sourceTree = ""; 257 | }; 258 | 139FDEE71B06529A00C62182 /* Products */ = { 259 | isa = PBXGroup; 260 | children = ( 261 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 262 | 261510931DCB8D4100CF1D81 /* libRCTWebSocket-tvOS.a */, 263 | ); 264 | name = Products; 265 | sourceTree = ""; 266 | }; 267 | 13B07FAE1A68108700A75B9A /* RNAnimationLib */ = { 268 | isa = PBXGroup; 269 | children = ( 270 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 271 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 272 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 273 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 274 | 13B07FB61A68108700A75B9A /* Info.plist */, 275 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 276 | 13B07FB71A68108700A75B9A /* main.m */, 277 | ); 278 | name = RNAnimationLib; 279 | sourceTree = ""; 280 | }; 281 | 146834001AC3E56700842450 /* Products */ = { 282 | isa = PBXGroup; 283 | children = ( 284 | 146834041AC3E56700842450 /* libReact.a */, 285 | 261510971DCB8D4100CF1D81 /* libReact-tvOS.a */, 286 | ); 287 | name = Products; 288 | sourceTree = ""; 289 | }; 290 | 26F014E81DF58B7400A93F6D /* Products */ = { 291 | isa = PBXGroup; 292 | children = ( 293 | 26F014ED1DF58B7400A93F6D /* libRCTAnimation.a */, 294 | 26F014EF1DF58B7400A93F6D /* libRCTAnimation-tvOS.a */, 295 | ); 296 | name = Products; 297 | sourceTree = ""; 298 | }; 299 | 78C398B11ACF4ADC00677621 /* Products */ = { 300 | isa = PBXGroup; 301 | children = ( 302 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 303 | 261510821DCB8D4100CF1D81 /* libRCTLinking-tvOS.a */, 304 | ); 305 | name = Products; 306 | sourceTree = ""; 307 | }; 308 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 309 | isa = PBXGroup; 310 | children = ( 311 | 26F014E71DF58B7400A93F6D /* RCTAnimation.xcodeproj */, 312 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 313 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 314 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 315 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 316 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 317 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 318 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 319 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 320 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 321 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 322 | ); 323 | name = Libraries; 324 | sourceTree = ""; 325 | }; 326 | 832341B11AAA6A8300B99B32 /* Products */ = { 327 | isa = PBXGroup; 328 | children = ( 329 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 330 | 2615108E1DCB8D4100CF1D81 /* libRCTText-tvOS.a */, 331 | ); 332 | name = Products; 333 | sourceTree = ""; 334 | }; 335 | 83CBB9F61A601CBA00E9B192 = { 336 | isa = PBXGroup; 337 | children = ( 338 | 13B07FAE1A68108700A75B9A /* RNAnimationLib */, 339 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 340 | 83CBBA001A601CBA00E9B192 /* Products */, 341 | ); 342 | indentWidth = 2; 343 | sourceTree = ""; 344 | tabWidth = 2; 345 | }; 346 | 83CBBA001A601CBA00E9B192 /* Products */ = { 347 | isa = PBXGroup; 348 | children = ( 349 | 13B07F961A680F5B00A75B9A /* RNAnimationLib.app */, 350 | ); 351 | name = Products; 352 | sourceTree = ""; 353 | }; 354 | /* End PBXGroup section */ 355 | 356 | /* Begin PBXNativeTarget section */ 357 | 13B07F861A680F5B00A75B9A /* RNAnimationLib */ = { 358 | isa = PBXNativeTarget; 359 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "RNAnimationLib" */; 360 | buildPhases = ( 361 | 13B07F871A680F5B00A75B9A /* Sources */, 362 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 363 | 13B07F8E1A680F5B00A75B9A /* Resources */, 364 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 365 | ); 366 | buildRules = ( 367 | ); 368 | dependencies = ( 369 | ); 370 | name = RNAnimationLib; 371 | productName = "Hello World"; 372 | productReference = 13B07F961A680F5B00A75B9A /* RNAnimationLib.app */; 373 | productType = "com.apple.product-type.application"; 374 | }; 375 | /* End PBXNativeTarget section */ 376 | 377 | /* Begin PBXProject section */ 378 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 379 | isa = PBXProject; 380 | attributes = { 381 | LastUpgradeCheck = 0610; 382 | ORGANIZATIONNAME = Facebook; 383 | TargetAttributes = { 384 | 13B07F861A680F5B00A75B9A = { 385 | DevelopmentTeam = XPHGA2FMQQ; 386 | }; 387 | }; 388 | }; 389 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "RNAnimationLib" */; 390 | compatibilityVersion = "Xcode 3.2"; 391 | developmentRegion = English; 392 | hasScannedForEncodings = 0; 393 | knownRegions = ( 394 | en, 395 | Base, 396 | ); 397 | mainGroup = 83CBB9F61A601CBA00E9B192; 398 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 399 | projectDirPath = ""; 400 | projectReferences = ( 401 | { 402 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 403 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 404 | }, 405 | { 406 | ProductGroup = 26F014E81DF58B7400A93F6D /* Products */; 407 | ProjectRef = 26F014E71DF58B7400A93F6D /* RCTAnimation.xcodeproj */; 408 | }, 409 | { 410 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 411 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 412 | }, 413 | { 414 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 415 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 416 | }, 417 | { 418 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 419 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 420 | }, 421 | { 422 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 423 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 424 | }, 425 | { 426 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 427 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 428 | }, 429 | { 430 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 431 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 432 | }, 433 | { 434 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 435 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 436 | }, 437 | { 438 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 439 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 440 | }, 441 | { 442 | ProductGroup = 146834001AC3E56700842450 /* Products */; 443 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 444 | }, 445 | ); 446 | projectRoot = ""; 447 | targets = ( 448 | 13B07F861A680F5B00A75B9A /* RNAnimationLib */, 449 | ); 450 | }; 451 | /* End PBXProject section */ 452 | 453 | /* Begin PBXReferenceProxy section */ 454 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 455 | isa = PBXReferenceProxy; 456 | fileType = archive.ar; 457 | path = libRCTActionSheet.a; 458 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 459 | sourceTree = BUILT_PRODUCTS_DIR; 460 | }; 461 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 462 | isa = PBXReferenceProxy; 463 | fileType = archive.ar; 464 | path = libRCTGeolocation.a; 465 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 466 | sourceTree = BUILT_PRODUCTS_DIR; 467 | }; 468 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 469 | isa = PBXReferenceProxy; 470 | fileType = archive.ar; 471 | path = libRCTImage.a; 472 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 473 | sourceTree = BUILT_PRODUCTS_DIR; 474 | }; 475 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 476 | isa = PBXReferenceProxy; 477 | fileType = archive.ar; 478 | path = libRCTNetwork.a; 479 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 480 | sourceTree = BUILT_PRODUCTS_DIR; 481 | }; 482 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 483 | isa = PBXReferenceProxy; 484 | fileType = archive.ar; 485 | path = libRCTVibration.a; 486 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 487 | sourceTree = BUILT_PRODUCTS_DIR; 488 | }; 489 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 490 | isa = PBXReferenceProxy; 491 | fileType = archive.ar; 492 | path = libRCTSettings.a; 493 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 494 | sourceTree = BUILT_PRODUCTS_DIR; 495 | }; 496 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 497 | isa = PBXReferenceProxy; 498 | fileType = archive.ar; 499 | path = libRCTWebSocket.a; 500 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 501 | sourceTree = BUILT_PRODUCTS_DIR; 502 | }; 503 | 146834041AC3E56700842450 /* libReact.a */ = { 504 | isa = PBXReferenceProxy; 505 | fileType = archive.ar; 506 | path = libReact.a; 507 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 508 | sourceTree = BUILT_PRODUCTS_DIR; 509 | }; 510 | 2615107E1DCB8D4100CF1D81 /* libRCTImage-tvOS.a */ = { 511 | isa = PBXReferenceProxy; 512 | fileType = archive.ar; 513 | path = "libRCTImage-tvOS.a"; 514 | remoteRef = 2615107D1DCB8D4100CF1D81 /* PBXContainerItemProxy */; 515 | sourceTree = BUILT_PRODUCTS_DIR; 516 | }; 517 | 261510821DCB8D4100CF1D81 /* libRCTLinking-tvOS.a */ = { 518 | isa = PBXReferenceProxy; 519 | fileType = archive.ar; 520 | path = "libRCTLinking-tvOS.a"; 521 | remoteRef = 261510811DCB8D4100CF1D81 /* PBXContainerItemProxy */; 522 | sourceTree = BUILT_PRODUCTS_DIR; 523 | }; 524 | 261510861DCB8D4100CF1D81 /* libRCTNetwork-tvOS.a */ = { 525 | isa = PBXReferenceProxy; 526 | fileType = archive.ar; 527 | path = "libRCTNetwork-tvOS.a"; 528 | remoteRef = 261510851DCB8D4100CF1D81 /* PBXContainerItemProxy */; 529 | sourceTree = BUILT_PRODUCTS_DIR; 530 | }; 531 | 2615108A1DCB8D4100CF1D81 /* libRCTSettings-tvOS.a */ = { 532 | isa = PBXReferenceProxy; 533 | fileType = archive.ar; 534 | path = "libRCTSettings-tvOS.a"; 535 | remoteRef = 261510891DCB8D4100CF1D81 /* PBXContainerItemProxy */; 536 | sourceTree = BUILT_PRODUCTS_DIR; 537 | }; 538 | 2615108E1DCB8D4100CF1D81 /* libRCTText-tvOS.a */ = { 539 | isa = PBXReferenceProxy; 540 | fileType = archive.ar; 541 | path = "libRCTText-tvOS.a"; 542 | remoteRef = 2615108D1DCB8D4100CF1D81 /* PBXContainerItemProxy */; 543 | sourceTree = BUILT_PRODUCTS_DIR; 544 | }; 545 | 261510931DCB8D4100CF1D81 /* libRCTWebSocket-tvOS.a */ = { 546 | isa = PBXReferenceProxy; 547 | fileType = archive.ar; 548 | path = "libRCTWebSocket-tvOS.a"; 549 | remoteRef = 261510921DCB8D4100CF1D81 /* PBXContainerItemProxy */; 550 | sourceTree = BUILT_PRODUCTS_DIR; 551 | }; 552 | 261510971DCB8D4100CF1D81 /* libReact-tvOS.a */ = { 553 | isa = PBXReferenceProxy; 554 | fileType = archive.ar; 555 | path = "libReact-tvOS.a"; 556 | remoteRef = 261510961DCB8D4100CF1D81 /* PBXContainerItemProxy */; 557 | sourceTree = BUILT_PRODUCTS_DIR; 558 | }; 559 | 26F014ED1DF58B7400A93F6D /* libRCTAnimation.a */ = { 560 | isa = PBXReferenceProxy; 561 | fileType = archive.ar; 562 | path = libRCTAnimation.a; 563 | remoteRef = 26F014EC1DF58B7400A93F6D /* PBXContainerItemProxy */; 564 | sourceTree = BUILT_PRODUCTS_DIR; 565 | }; 566 | 26F014EF1DF58B7400A93F6D /* libRCTAnimation-tvOS.a */ = { 567 | isa = PBXReferenceProxy; 568 | fileType = archive.ar; 569 | path = "libRCTAnimation-tvOS.a"; 570 | remoteRef = 26F014EE1DF58B7400A93F6D /* PBXContainerItemProxy */; 571 | sourceTree = BUILT_PRODUCTS_DIR; 572 | }; 573 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 574 | isa = PBXReferenceProxy; 575 | fileType = archive.ar; 576 | path = libRCTLinking.a; 577 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 578 | sourceTree = BUILT_PRODUCTS_DIR; 579 | }; 580 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 581 | isa = PBXReferenceProxy; 582 | fileType = archive.ar; 583 | path = libRCTText.a; 584 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 585 | sourceTree = BUILT_PRODUCTS_DIR; 586 | }; 587 | /* End PBXReferenceProxy section */ 588 | 589 | /* Begin PBXResourcesBuildPhase section */ 590 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 591 | isa = PBXResourcesBuildPhase; 592 | buildActionMask = 2147483647; 593 | files = ( 594 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 595 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 596 | ); 597 | runOnlyForDeploymentPostprocessing = 0; 598 | }; 599 | /* End PBXResourcesBuildPhase section */ 600 | 601 | /* Begin PBXShellScriptBuildPhase section */ 602 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 603 | isa = PBXShellScriptBuildPhase; 604 | buildActionMask = 12; 605 | files = ( 606 | ); 607 | inputPaths = ( 608 | ); 609 | name = "Bundle React Native code and images"; 610 | outputPaths = ( 611 | ); 612 | runOnlyForDeploymentPostprocessing = 0; 613 | shellPath = /bin/sh; 614 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh"; 615 | }; 616 | /* End PBXShellScriptBuildPhase section */ 617 | 618 | /* Begin PBXSourcesBuildPhase section */ 619 | 13B07F871A680F5B00A75B9A /* Sources */ = { 620 | isa = PBXSourcesBuildPhase; 621 | buildActionMask = 2147483647; 622 | files = ( 623 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 624 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 625 | ); 626 | runOnlyForDeploymentPostprocessing = 0; 627 | }; 628 | /* End PBXSourcesBuildPhase section */ 629 | 630 | /* Begin PBXVariantGroup section */ 631 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 632 | isa = PBXVariantGroup; 633 | children = ( 634 | 13B07FB21A68108700A75B9A /* Base */, 635 | ); 636 | name = LaunchScreen.xib; 637 | path = RNAnimationLib; 638 | sourceTree = ""; 639 | }; 640 | /* End PBXVariantGroup section */ 641 | 642 | /* Begin XCBuildConfiguration section */ 643 | 13B07F941A680F5B00A75B9A /* Debug */ = { 644 | isa = XCBuildConfiguration; 645 | buildSettings = { 646 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 647 | CURRENT_PROJECT_VERSION = 1; 648 | DEAD_CODE_STRIPPING = NO; 649 | DEVELOPMENT_TEAM = XPHGA2FMQQ; 650 | HEADER_SEARCH_PATHS = ( 651 | "$(inherited)", 652 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 653 | "$(SRCROOT)/../node_modules/react-native/React/**", 654 | ); 655 | INFOPLIST_FILE = RNAnimationLib/Info.plist; 656 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 657 | OTHER_LDFLAGS = ( 658 | "$(inherited)", 659 | "-ObjC", 660 | "-lc++", 661 | ); 662 | PRODUCT_NAME = RNAnimationLib; 663 | VERSIONING_SYSTEM = "apple-generic"; 664 | }; 665 | name = Debug; 666 | }; 667 | 13B07F951A680F5B00A75B9A /* Release */ = { 668 | isa = XCBuildConfiguration; 669 | buildSettings = { 670 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 671 | CURRENT_PROJECT_VERSION = 1; 672 | DEVELOPMENT_TEAM = XPHGA2FMQQ; 673 | HEADER_SEARCH_PATHS = ( 674 | "$(inherited)", 675 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 676 | "$(SRCROOT)/../node_modules/react-native/React/**", 677 | ); 678 | INFOPLIST_FILE = RNAnimationLib/Info.plist; 679 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 680 | OTHER_LDFLAGS = ( 681 | "$(inherited)", 682 | "-ObjC", 683 | "-lc++", 684 | ); 685 | PRODUCT_NAME = RNAnimationLib; 686 | VERSIONING_SYSTEM = "apple-generic"; 687 | }; 688 | name = Release; 689 | }; 690 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 691 | isa = XCBuildConfiguration; 692 | buildSettings = { 693 | ALWAYS_SEARCH_USER_PATHS = NO; 694 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 695 | CLANG_CXX_LIBRARY = "libc++"; 696 | CLANG_ENABLE_MODULES = YES; 697 | CLANG_ENABLE_OBJC_ARC = YES; 698 | CLANG_WARN_BOOL_CONVERSION = YES; 699 | CLANG_WARN_CONSTANT_CONVERSION = YES; 700 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 701 | CLANG_WARN_EMPTY_BODY = YES; 702 | CLANG_WARN_ENUM_CONVERSION = YES; 703 | CLANG_WARN_INT_CONVERSION = YES; 704 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 705 | CLANG_WARN_UNREACHABLE_CODE = YES; 706 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 707 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 708 | COPY_PHASE_STRIP = NO; 709 | ENABLE_STRICT_OBJC_MSGSEND = YES; 710 | GCC_C_LANGUAGE_STANDARD = gnu99; 711 | GCC_DYNAMIC_NO_PIC = NO; 712 | GCC_OPTIMIZATION_LEVEL = 0; 713 | GCC_PREPROCESSOR_DEFINITIONS = ( 714 | "DEBUG=1", 715 | "$(inherited)", 716 | ); 717 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 718 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 719 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 720 | GCC_WARN_UNDECLARED_SELECTOR = YES; 721 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 722 | GCC_WARN_UNUSED_FUNCTION = YES; 723 | GCC_WARN_UNUSED_VARIABLE = YES; 724 | HEADER_SEARCH_PATHS = ( 725 | "$(inherited)", 726 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 727 | "$(SRCROOT)/../node_modules/react-native/React/**", 728 | ); 729 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 730 | MTL_ENABLE_DEBUG_INFO = YES; 731 | ONLY_ACTIVE_ARCH = YES; 732 | SDKROOT = iphoneos; 733 | }; 734 | name = Debug; 735 | }; 736 | 83CBBA211A601CBA00E9B192 /* Release */ = { 737 | isa = XCBuildConfiguration; 738 | buildSettings = { 739 | ALWAYS_SEARCH_USER_PATHS = NO; 740 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 741 | CLANG_CXX_LIBRARY = "libc++"; 742 | CLANG_ENABLE_MODULES = YES; 743 | CLANG_ENABLE_OBJC_ARC = YES; 744 | CLANG_WARN_BOOL_CONVERSION = YES; 745 | CLANG_WARN_CONSTANT_CONVERSION = YES; 746 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 747 | CLANG_WARN_EMPTY_BODY = YES; 748 | CLANG_WARN_ENUM_CONVERSION = YES; 749 | CLANG_WARN_INT_CONVERSION = YES; 750 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 751 | CLANG_WARN_UNREACHABLE_CODE = YES; 752 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 753 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 754 | COPY_PHASE_STRIP = YES; 755 | ENABLE_NS_ASSERTIONS = NO; 756 | ENABLE_STRICT_OBJC_MSGSEND = YES; 757 | GCC_C_LANGUAGE_STANDARD = gnu99; 758 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 759 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 760 | GCC_WARN_UNDECLARED_SELECTOR = YES; 761 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 762 | GCC_WARN_UNUSED_FUNCTION = YES; 763 | GCC_WARN_UNUSED_VARIABLE = YES; 764 | HEADER_SEARCH_PATHS = ( 765 | "$(inherited)", 766 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 767 | "$(SRCROOT)/../node_modules/react-native/React/**", 768 | ); 769 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 770 | MTL_ENABLE_DEBUG_INFO = NO; 771 | SDKROOT = iphoneos; 772 | VALIDATE_PRODUCT = YES; 773 | }; 774 | name = Release; 775 | }; 776 | /* End XCBuildConfiguration section */ 777 | 778 | /* Begin XCConfigurationList section */ 779 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "RNAnimationLib" */ = { 780 | isa = XCConfigurationList; 781 | buildConfigurations = ( 782 | 13B07F941A680F5B00A75B9A /* Debug */, 783 | 13B07F951A680F5B00A75B9A /* Release */, 784 | ); 785 | defaultConfigurationIsVisible = 0; 786 | defaultConfigurationName = Release; 787 | }; 788 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "RNAnimationLib" */ = { 789 | isa = XCConfigurationList; 790 | buildConfigurations = ( 791 | 83CBBA201A601CBA00E9B192 /* Debug */, 792 | 83CBBA211A601CBA00E9B192 /* Release */, 793 | ); 794 | defaultConfigurationIsVisible = 0; 795 | defaultConfigurationName = Release; 796 | }; 797 | /* End XCConfigurationList section */ 798 | }; 799 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 800 | } 801 | -------------------------------------------------------------------------------- /ios/RNAnimationLib.xcodeproj/xcshareddata/xcschemes/RNAnimationLib.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 67 | 68 | 78 | 80 | 86 | 87 | 88 | 89 | 90 | 91 | 97 | 99 | 105 | 106 | 107 | 108 | 110 | 111 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /ios/RNAnimationLib/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 | -------------------------------------------------------------------------------- /ios/RNAnimationLib/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 "RCTBundleURLProvider.h" 13 | #import "RCTRootView.h" 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:@"RNAnimationLib" 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 | -------------------------------------------------------------------------------- /ios/RNAnimationLib/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 | -------------------------------------------------------------------------------- /ios/RNAnimationLib/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 | } -------------------------------------------------------------------------------- /ios/RNAnimationLib/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 | -------------------------------------------------------------------------------- /ios/RNAnimationLib/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 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-animation-library", 3 | "version": "0.0.8", 4 | "scripts": { 5 | "start": "node node_modules/react-native/local-cli/cli.js start", 6 | "test": "jest" 7 | }, 8 | "main": "src/index.js", 9 | "publishConfig": { 10 | "registry": "https://registry.npmjs.org/" 11 | }, 12 | "peerDependencies": { 13 | "react": "15.4.1", 14 | "react-native": "0.38.0" 15 | }, 16 | "jest": { 17 | "preset": "jest-react-native" 18 | }, 19 | "devDependencies": { 20 | "babel-jest": "16.0.0", 21 | "babel-preset-react-native": "1.9.0", 22 | "flat-colors": "^3.3.5", 23 | "jest": "16.0.2", 24 | "jest-react-native": "16.0.0", 25 | "react": "15.4.1", 26 | "react-native": "0.38.0", 27 | "react-test-renderer": "15.3.2" 28 | }, 29 | "dependencies": { 30 | "events": "^1.1.1" 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/AnimatedListView/AnimatedListView.js: -------------------------------------------------------------------------------- 1 | import _ from 'lodash'; 2 | import React, { Component } from 'react'; 3 | import { 4 | StyleSheet, 5 | Text, 6 | View, 7 | ListView, 8 | Animated, 9 | } from 'react-native'; 10 | import EventEmitter from 'events'; 11 | import AnimatedListViewItem from './AnimatedListViewItem'; 12 | 13 | export default class AnimatedListView extends Component { 14 | 15 | 16 | constructor(props) { 17 | super(props); 18 | this._renderRow = this._renderRow.bind(this); 19 | this._onScroll = this._onScroll.bind(this); 20 | this.state = { 21 | listViewKey: Date.now(), 22 | scrolled: false // if scrolled the animation stops 23 | }; 24 | this.originRenderRow = this.props.renderRow; 25 | this.eventEmitter = null; 26 | } 27 | 28 | componentWillMount() { 29 | this.eventEmitter = new EventEmitter(); 30 | this.eventEmitter.setMaxListeners(0); 31 | } 32 | 33 | 34 | 35 | _renderRow(rowData, sectionID, rowID, highlightRow) { 36 | const shouldAnimate = !this.state.scrolled; 37 | 38 | if (this.props.avoidAnimation) { 39 | return ( 40 | this.props.renderRow(rowData, sectionID, rowID, highlightRow) 41 | ); 42 | } 43 | 44 | return ( 45 | 51 | {this.props.renderRow(rowData, sectionID, rowID, highlightRow)} 52 | 53 | ); 54 | } 55 | 56 | 57 | performAnimation() { 58 | this.setState({scrolled: false}); 59 | this.eventEmitter.emit('performAnimation'); 60 | this.setState({listViewKey: Date.now()}) 61 | } 62 | 63 | _onScroll() { 64 | 65 | if (!this.state.scrolled) { 66 | this.setState({scrolled: true}); 67 | this.eventEmitter.emit('stopAnimation'); 68 | 69 | } 70 | if (this.props.onScroll) { 71 | this.props.onScroll(); 72 | } 73 | } 74 | 75 | render() { 76 | return ( 77 | 83 | ); 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /src/AnimatedListView/AnimatedListViewItem.js: -------------------------------------------------------------------------------- 1 | import _ from 'lodash'; 2 | import React, { Component } from 'react'; 3 | import { 4 | StyleSheet, 5 | Text, 6 | View, 7 | ListView, 8 | Animated, 9 | Easing, 10 | } from 'react-native'; 11 | 12 | const useNativeDriver = true; 13 | 14 | export default class AnimatedListViewItem extends Component { 15 | 16 | constructor(props) { 17 | super(props); 18 | const offsetY = _(this.props.animationOption).get('offsetY', 100); 19 | const initialOpacity = _(this.props.animationOption).get('initialOpacity', .4); 20 | const duration = _(this.props.animationOption).get('duration', 400); 21 | const shouldAnimate = _(this.props.animationOption).get('shouldAnimate', true); 22 | const cellAnimationDelay =_(this.props.animationOption).get('cellAnimationDelay', 200); 23 | 24 | this.performAnimation = this.performAnimation.bind(this); 25 | this.stopAnimation = this.stopAnimation.bind(this); 26 | this.state = { 27 | animatedValue: new Animated.Value(offsetY), 28 | fadeAnimation: new Animated.Value(initialOpacity), 29 | shouldPerformAnimation: shouldAnimate, 30 | duration, 31 | cellAnimationDelay 32 | }; 33 | } 34 | 35 | 36 | componentDidMount() { 37 | this.props.events.on('performAnimation', this.performAnimation); 38 | this.props.events.on('stopAnimation', this.stopAnimation); 39 | this.performAnimation(); 40 | } 41 | 42 | 43 | componentWillUnmount() { 44 | this.props.events.removeListener('performAnimation', this.performAnimation); 45 | this.props.events.removeListener('stopAnimation', this.stopAnimation); 46 | this.props.events.removeAllListeners(); 47 | this.stopAnimation(); 48 | } 49 | 50 | componentWillReceiveProps(nextProps) { 51 | if (!nextProps.animationOption.shouldAnimate) { 52 | this.state.fadeAnimation.stopAnimation(); 53 | this.state.animatedValue.stopAnimation(); 54 | } 55 | 56 | this.setState({shouldPerformAnimation: nextProps.shouldAnimate}); 57 | } 58 | 59 | stopAnimation() { 60 | this.state.fadeAnimation.stopAnimation(); 61 | this.state.animatedValue.stopAnimation(); 62 | this.setState({shouldPerformAnimation: false}) 63 | } 64 | 65 | performAnimation() { 66 | Animated.sequence( [ 67 | Animated.delay(this.props.rowID * this.state.cellAnimationDelay), 68 | Animated.parallel([ 69 | Animated.timing( 70 | this.state.fadeAnimation, 71 | { 72 | toValue: 1, 73 | duration: this.state.duration, 74 | useNativeDriver, 75 | } 76 | ), 77 | 78 | Animated.timing( 79 | this.state.animatedValue, 80 | { 81 | easing: Easing.out(Easing.quad), 82 | toValue: 0, 83 | duration: this.state.duration, 84 | useNativeDriver 85 | } 86 | ) 87 | ] 88 | ) 89 | ]).start(); 90 | }; 91 | 92 | 93 | getStyle() { 94 | if (!this.state.shouldPerformAnimation) { 95 | return; 96 | } 97 | 98 | return ( 99 | {opacity: this.state.fadeAnimation, transform: [ 100 | { 101 | translateY: this.state.animatedValue 102 | } 103 | ]} 104 | ) 105 | } 106 | 107 | render() { 108 | const style = this.getStyle(); 109 | 110 | return ( 111 | 113 | {this.props.children} 114 | 115 | ); 116 | } 117 | } 118 | -------------------------------------------------------------------------------- /src/BridgeNoiseMaker.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { View, Dimensions } from 'react-native'; 3 | 4 | const numBitsInCounter = 75; 5 | const bitViewSize = Dimensions.get('window').width / numBitsInCounter; 6 | 7 | function getRandomInt(min = 0, max = 1 << 31) { 8 | return Math.floor(Math.random() * (max - min)) + min; 9 | } 10 | 11 | export default class BridgeNoiseMaker extends Component { 12 | constructor(props) { 13 | super(props); 14 | this.state = { 15 | counter: 1 16 | }; 17 | } 18 | render() { 19 | const bitValues = []; 20 | for (let i = 0; i < numBitsInCounter; i++) { 21 | bitValues.push(this.state.counter & (1 << i)); 22 | } 23 | setTimeout(() => { 24 | this.setState({ 25 | counter: getRandomInt() 26 | }); 27 | }, 1000); 28 | return ( 29 | 30 | {bitValues.map((bit, i) => ( 31 | 39 | ))} 40 | 41 | ); 42 | } 43 | } -------------------------------------------------------------------------------- /src/FlipAnimatedImage/FlipAnimatedImage.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { 3 | View, 4 | Switch, 5 | Animated, 6 | StyleSheet, 7 | Easing, 8 | Text, 9 | TouchableWithoutFeedback, 10 | Image, 11 | TouchableOpacity 12 | } from 'react-native'; 13 | 14 | 15 | const useNativeDriver = true; 16 | 17 | export default class FlipAnimatedImage extends Component { 18 | 19 | constructor(props) { 20 | super(props); 21 | this.state = { 22 | isSelected: false, 23 | selectedImage: this.props.selectedImage, 24 | unSelectedImage: this.props.unSelectedImage, 25 | scaleValue: new Animated.Value(1), 26 | opacityValue: new Animated.Value(1), 27 | duration: this.props.duration.bounceOut && this.props.duration.bounceIn ? this.props.duration : {bounceOut: 150, bounceIn: 100} 28 | } 29 | } 30 | 31 | _selectedChanged(isSelected) { 32 | 33 | 34 | Animated.sequence([ 35 | Animated.timing( 36 | this.state.scaleValue, 37 | { 38 | duration: this.state.duration.bounceOut, 39 | toValue: 1.2, 40 | useNativeDriver 41 | } 42 | ), 43 | Animated.parallel([ 44 | Animated.timing( 45 | this.state.opacityValue, 46 | { 47 | duration: this.state.duration.bounceIn, 48 | toValue: 0.1, 49 | useNativeDriver 50 | } 51 | ), 52 | Animated.timing( 53 | this.state.scaleValue, 54 | { 55 | duration: this.state.duration.bounceIn, 56 | toValue: 0.2, 57 | useNativeDriver 58 | } 59 | ) 60 | ]) 61 | ]).start(() => this._swapImages(isSelected)); 62 | } 63 | 64 | _swapImages(isSelected) { 65 | const newPresentedImage = isSelected ? this.props.selectedImage : this.props.unselectedImage 66 | this.setState({isSelected: isSelected}); 67 | 68 | Animated.parallel([ 69 | Animated.timing( 70 | this.state.opacityValue, 71 | { 72 | duration: this.state.duration.bounceOut+this.state.duration.bounceIn, 73 | toValue: 1, 74 | useNativeDriver 75 | } 76 | ), 77 | Animated.sequence([ 78 | Animated.timing( 79 | this.state.scaleValue, 80 | { 81 | duration: this.state.duration.bounceOut+this.state.duration.bounceIn, 82 | toValue: 1.2, 83 | useNativeDriver 84 | } 85 | ), 86 | Animated.timing( 87 | this.state.scaleValue, 88 | { 89 | duration: this.state.duration.bounceOut, 90 | toValue: 1, 91 | useNativeDriver 92 | } 93 | ) 94 | ]) 95 | ]).start(); 96 | } 97 | 98 | componentWillReceiveProps(nextProps) { 99 | if (nextProps.isSelected === this.state.isSelected) return; 100 | this._selectedChanged(nextProps.isSelected); 101 | } 102 | 103 | render() { 104 | const inheritStyle = this.props.style ? this.props.style : {} 105 | return ( 106 | 116 | 117 | ) 118 | } 119 | } 120 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import FlipAnimatedImage from './FlipAnimatedImage/FlipAnimatedImage'; 2 | import AnimatedListView from './AnimatedListView/AnimatedListView'; 3 | 4 | 5 | export { 6 | FlipAnimatedImage, 7 | AnimatedListView 8 | }; --------------------------------------------------------------------------------