├── .gitattributes ├── .gitignore ├── IconicExample ├── .babelrc ├── .buckconfig ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .watchmanconfig ├── App.js ├── __tests__ │ └── App.js ├── android │ ├── .project │ ├── .settings │ │ └── org.eclipse.buildship.core.prefs │ ├── app │ │ ├── .classpath │ │ ├── .project │ │ ├── .settings │ │ │ └── org.eclipse.buildship.core.prefs │ │ ├── BUCK │ │ ├── build.gradle │ │ ├── proguard-rules.pro │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── iconicexample │ │ │ │ ├── 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 ├── app.json ├── index.js ├── ios │ ├── IconicExample-tvOS │ │ └── Info.plist │ ├── IconicExample-tvOSTests │ │ └── Info.plist │ ├── IconicExample.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── IconicExample-tvOS.xcscheme │ │ │ └── IconicExample.xcscheme │ ├── IconicExample │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Base.lproj │ │ │ └── LaunchScreen.xib │ │ ├── Images.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ │ └── Contents.json │ │ ├── Info.plist │ │ └── main.m │ └── IconicExampleTests │ │ ├── IconicExampleTests.m │ │ └── Info.plist └── package.json ├── LICENSE ├── README.md ├── RNIconic.js ├── android ├── .classpath ├── .project ├── .settings │ └── org.eclipse.buildship.core.prefs ├── build.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── src │ └── main │ ├── AndroidManifest.xml │ └── java │ └── ui │ └── iconic │ ├── RNIconic.java │ ├── RNIconicEvent.java │ ├── RNIconicModule.java │ └── RNIconicPackage.java ├── ios ├── Podfile ├── RNIconic.h ├── RNIconic.m ├── RNIconic.xcodeproj │ └── project.pbxproj └── RNIconic.xcworkspace │ └── contents.xcworkspacedata ├── package.json └── scripts └── installer.js /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # OSX 3 | # 4 | .DS_Store 5 | 6 | # node.js 7 | # 8 | node_modules/ 9 | npm-debug.log 10 | yarn-error.log 11 | 12 | 13 | # Xcode 14 | # 15 | build/ 16 | *.pbxuser 17 | !default.pbxuser 18 | *.mode1v3 19 | !default.mode1v3 20 | *.mode2v3 21 | !default.mode2v3 22 | *.perspectivev3 23 | !default.perspectivev3 24 | xcuserdata 25 | *.xccheckout 26 | *.moved-aside 27 | DerivedData 28 | *.hmap 29 | *.ipa 30 | *.xcuserstate 31 | project.xcworkspace 32 | 33 | 34 | # Android/IntelliJ 35 | # 36 | build/ 37 | .idea 38 | .gradle 39 | local.properties 40 | *.iml 41 | 42 | # BUCK 43 | buck-out/ 44 | \.buckd/ 45 | *.keystore 46 | 47 | .history/* -------------------------------------------------------------------------------- /IconicExample/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react-native"] 3 | } 4 | -------------------------------------------------------------------------------- /IconicExample/.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /IconicExample/.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore unexpected extra "@providesModule" 9 | .*/node_modules/.*/node_modules/fbjs/.* 10 | 11 | ; Ignore duplicate module providers 12 | ; For RN Apps installed via npm, "Libraries" folder is inside 13 | ; "node_modules/react-native" but in the source repo it is in the root 14 | .*/Libraries/react-native/React.js 15 | 16 | ; Ignore polyfills 17 | .*/Libraries/polyfills/.* 18 | 19 | ; Ignore metro 20 | .*/node_modules/metro/.* 21 | 22 | [include] 23 | 24 | [libs] 25 | node_modules/react-native/Libraries/react-native/react-native-interface.js 26 | node_modules/react-native/flow/ 27 | node_modules/react-native/flow-github/ 28 | 29 | [options] 30 | emoji=true 31 | 32 | module.system=haste 33 | 34 | munge_underscores=true 35 | 36 | 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' 37 | 38 | module.file_ext=.js 39 | module.file_ext=.jsx 40 | module.file_ext=.json 41 | module.file_ext=.native.js 42 | 43 | suppress_type=$FlowIssue 44 | suppress_type=$FlowFixMe 45 | suppress_type=$FlowFixMeProps 46 | suppress_type=$FlowFixMeState 47 | 48 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 49 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 50 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 51 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError 52 | 53 | unsafe.enable_getters_and_setters=true 54 | 55 | [version] 56 | ^0.61.0 57 | -------------------------------------------------------------------------------- /IconicExample/.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /IconicExample/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # Android/IntelliJ 26 | # 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | 33 | # node.js 34 | # 35 | node_modules/ 36 | npm-debug.log 37 | yarn-error.log 38 | 39 | # BUCK 40 | buck-out/ 41 | \.buckd/ 42 | *.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | -------------------------------------------------------------------------------- /IconicExample/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /IconicExample/App.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 | Platform, 10 | StyleSheet, 11 | Text, 12 | View 13 | } from 'react-native'; 14 | 15 | import RNIconic from 'react-native-iconic' 16 | 17 | export default class App extends Component<{}> { 18 | constructor (props) { 19 | super(props) 20 | 21 | 22 | if (Platform.OS === "ios") { 23 | shapes = [ 24 | RNIconic.Shapes.Default, 25 | RNIconic.Shapes.Add, 26 | RNIconic.Shapes.Minus, 27 | RNIconic.Shapes.Close, 28 | RNIconic.Shapes.Back, 29 | RNIconic.Shapes.Forward, 30 | RNIconic.Shapes.Menu, 31 | RNIconic.Shapes.Download, 32 | RNIconic.Shapes.Share, 33 | RNIconic.Shapes.DownBasic, 34 | RNIconic.Shapes.UpBasic, 35 | RNIconic.Shapes.Paused, 36 | RNIconic.Shapes.DownArrow, 37 | RNIconic.Shapes.RightTriangle, 38 | RNIconic.Shapes.LeftTriangle, 39 | RNIconic.Shapes.UpTriangle, 40 | RNIconic.Shapes.DownTriangle, 41 | RNIconic.Shapes.Ok, 42 | RNIconic.Shapes.Rewind, 43 | RNIconic.Shapes.FastForward, 44 | RNIconic.Shapes.Square 45 | ] 46 | } else if (Platform.OS === "android") { 47 | shapes = [ 48 | // RNIconic.Shapes.DownBasic, 49 | // RNIconic.Shapes.UpBasic, 50 | RNIconic.Shapes.BURGER, 51 | RNIconic.Shapes.ARROW, 52 | RNIconic.Shapes.X, 53 | RNIconic.Shapes.CHECK 54 | ] 55 | } 56 | 57 | let selection = 0 58 | 59 | this.state = { 60 | shapes: shapes, 61 | selection: selection 62 | } 63 | } 64 | 65 | componentDidMount () { 66 | // setTimeout (() => { 67 | // this.setState({ 68 | // selection: 0 69 | // }) 70 | // }, 5000) 71 | } 72 | 73 | render() { 74 | let shapes = [] 75 | 76 | return 77 | 78 | ; 79 | } 80 | } 81 | 82 | const styles = StyleSheet.create({ 83 | container: { 84 | flex: 1, 85 | flexDirection: "row", 86 | justifyContent: "space-around", 87 | alignItems: "center", 88 | backgroundColor: "#F5FCFF" 89 | } 90 | }); -------------------------------------------------------------------------------- /IconicExample/__tests__/App.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import App from '../App'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /IconicExample/android/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | IconicExample 4 | Project IconicExample created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.buildship.core.gradleprojectbuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.buildship.core.gradleprojectnature 16 | 17 | 18 | -------------------------------------------------------------------------------- /IconicExample/android/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | connection.project.dir= 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /IconicExample/android/app/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /IconicExample/android/app/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | app 4 | Project app created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.buildship.core.gradleprojectbuilder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.buildship.core.gradleprojectnature 22 | 23 | 24 | -------------------------------------------------------------------------------- /IconicExample/android/app/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | connection.project.dir=.. 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /IconicExample/android/app/BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | lib_deps = [] 12 | 13 | for jarfile in glob(['libs/*.jar']): 14 | name = 'jars__' + jarfile[jarfile.rindex('/') + 1: jarfile.rindex('.jar')] 15 | lib_deps.append(':' + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | 21 | for aarfile in glob(['libs/*.aar']): 22 | name = 'aars__' + aarfile[aarfile.rindex('/') + 1: aarfile.rindex('.aar')] 23 | lib_deps.append(':' + name) 24 | android_prebuilt_aar( 25 | name = name, 26 | aar = aarfile, 27 | ) 28 | 29 | android_library( 30 | name = "all-libs", 31 | exported_deps = lib_deps, 32 | ) 33 | 34 | android_library( 35 | name = "app-code", 36 | srcs = glob([ 37 | "src/main/java/**/*.java", 38 | ]), 39 | deps = [ 40 | ":all-libs", 41 | ":build_config", 42 | ":res", 43 | ], 44 | ) 45 | 46 | android_build_config( 47 | name = "build_config", 48 | package = "com.iconicexample", 49 | ) 50 | 51 | android_resource( 52 | name = "res", 53 | package = "com.iconicexample", 54 | res = "src/main/res", 55 | ) 56 | 57 | android_binary( 58 | name = "app", 59 | keystore = "//android/keystores:debug", 60 | manifest = "src/main/AndroidManifest.xml", 61 | package_type = "debug", 62 | deps = [ 63 | ":app-code", 64 | ], 65 | ) 66 | -------------------------------------------------------------------------------- /IconicExample/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 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 37 | * // for example: to disable dev mode in the staging build type (if configured) 38 | * devDisabledInStaging: true, 39 | * // The configuration property can be in the following formats 40 | * // 'devDisabledIn${productFlavor}${buildType}' 41 | * // 'devDisabledIn${buildType}' 42 | * 43 | * // the root of your project, i.e. where "package.json" lives 44 | * root: "../../", 45 | * 46 | * // where to put the JS bundle asset in debug mode 47 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 48 | * 49 | * // where to put the JS bundle asset in release mode 50 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 51 | * 52 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 53 | * // require('./image.png')), in debug mode 54 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 55 | * 56 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 57 | * // require('./image.png')), in release mode 58 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 59 | * 60 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 61 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 62 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 63 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 64 | * // for example, you might want to remove it from here. 65 | * inputExcludes: ["android/**", "ios/**"], 66 | * 67 | * // override which node gets called and with what additional arguments 68 | * nodeExecutableAndArgs: ["node"], 69 | * 70 | * // supply additional arguments to the packager 71 | * extraPackagerArgs: [] 72 | * ] 73 | */ 74 | 75 | project.ext.react = [ 76 | entryFile: "index.js" 77 | ] 78 | 79 | apply from: "../../node_modules/react-native/react.gradle" 80 | 81 | /** 82 | * Set this to true to create two separate APKs instead of one: 83 | * - An APK that only works on ARM devices 84 | * - An APK that only works on x86 devices 85 | * The advantage is the size of the APK is reduced by about 4MB. 86 | * Upload all the APKs to the Play Store and people will download 87 | * the correct one based on the CPU architecture of their device. 88 | */ 89 | def enableSeparateBuildPerCPUArchitecture = false 90 | 91 | /** 92 | * Run Proguard to shrink the Java bytecode in release builds. 93 | */ 94 | def enableProguardInReleaseBuilds = false 95 | 96 | android { 97 | compileSdkVersion 27 98 | buildToolsVersion "27.0.3" 99 | 100 | defaultConfig { 101 | applicationId "com.iconicexample" 102 | minSdkVersion 16 103 | targetSdkVersion 27 104 | versionCode 1 105 | versionName "1.0" 106 | ndk { 107 | abiFilters "armeabi-v7a", "x86" 108 | } 109 | } 110 | splits { 111 | abi { 112 | reset() 113 | enable enableSeparateBuildPerCPUArchitecture 114 | universalApk false // If true, also generate a universal APK 115 | include "armeabi-v7a", "x86" 116 | } 117 | } 118 | buildTypes { 119 | release { 120 | minifyEnabled enableProguardInReleaseBuilds 121 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 122 | } 123 | } 124 | // applicationVariants are e.g. debug, release 125 | applicationVariants.all { variant -> 126 | variant.outputs.each { output -> 127 | // For each separate APK per architecture, set a unique version code as described here: 128 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 129 | def versionCodes = ["armeabi-v7a":1, "x86":2] 130 | def abi = output.getFilter(OutputFile.ABI) 131 | if (abi != null) { // null for the universal-debug, universal-release variants 132 | output.versionCodeOverride = 133 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 134 | } 135 | } 136 | } 137 | } 138 | 139 | dependencies { 140 | compile project(':react-native-iconic') 141 | compile fileTree(dir: "libs", include: ["*.jar"]) 142 | compile "com.android.support:appcompat-v7:27.0.2" 143 | compile "com.facebook.react:react-native:+" // From node_modules 144 | } 145 | 146 | // Run this once to be able to run the application with BUCK 147 | // puts all compile dependencies into folder libs for BUCK to use 148 | task copyDownloadableDepsToLibs(type: Copy) { 149 | from configurations.compile 150 | into 'libs' 151 | } 152 | -------------------------------------------------------------------------------- /IconicExample/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 | # TextLayoutBuilder uses a non-public Android constructor within StaticLayout. 54 | # See libs/proxy/src/main/java/com/facebook/fbui/textlayoutbuilder/proxy for details. 55 | -dontwarn android.text.StaticLayout 56 | 57 | # okhttp 58 | 59 | -keepattributes Signature 60 | -keepattributes *Annotation* 61 | -keep class okhttp3.** { *; } 62 | -keep interface okhttp3.** { *; } 63 | -dontwarn okhttp3.** 64 | 65 | # okio 66 | 67 | -keep class sun.misc.Unsafe { *; } 68 | -dontwarn java.nio.file.* 69 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 70 | -dontwarn okio.** 71 | -------------------------------------------------------------------------------- /IconicExample/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 12 | 13 | 19 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /IconicExample/android/app/src/main/java/com/iconicexample/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.iconicexample; 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 "IconicExample"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /IconicExample/android/app/src/main/java/com/iconicexample/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.iconicexample; 2 | 3 | import android.app.Application; 4 | 5 | import com.facebook.react.ReactApplication; 6 | import ui.iconic.RNIconicPackage; 7 | import com.facebook.react.ReactNativeHost; 8 | import com.facebook.react.ReactPackage; 9 | import com.facebook.react.shell.MainReactPackage; 10 | import com.facebook.soloader.SoLoader; 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 | public boolean getUseDeveloperSupport() { 20 | return BuildConfig.DEBUG; 21 | } 22 | 23 | @Override 24 | protected List getPackages() { 25 | return Arrays.asList( 26 | new MainReactPackage(), 27 | new RNIconicPackage() 28 | ); 29 | } 30 | 31 | @Override 32 | protected String getJSMainModuleName() { 33 | return "index"; 34 | } 35 | }; 36 | 37 | @Override 38 | public ReactNativeHost getReactNativeHost() { 39 | return mReactNativeHost; 40 | } 41 | 42 | @Override 43 | public void onCreate() { 44 | super.onCreate(); 45 | SoLoader.init(this, /* native exopackage */ false); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /IconicExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prscX/react-native-iconic/ed4488fa1021fcebb2255bdbb30194a29187cb2b/IconicExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /IconicExample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prscX/react-native-iconic/ed4488fa1021fcebb2255bdbb30194a29187cb2b/IconicExample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /IconicExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prscX/react-native-iconic/ed4488fa1021fcebb2255bdbb30194a29187cb2b/IconicExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /IconicExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prscX/react-native-iconic/ed4488fa1021fcebb2255bdbb30194a29187cb2b/IconicExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /IconicExample/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | IconicExample 3 | 4 | -------------------------------------------------------------------------------- /IconicExample/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /IconicExample/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 | maven { url "https://maven.google.com" } 7 | } 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.1.3' 10 | 11 | // NOTE: Do not place your application dependencies here; they belong 12 | // in the individual module build.gradle files 13 | } 14 | } 15 | 16 | allprojects { 17 | repositories { 18 | mavenLocal() 19 | jcenter() 20 | maven { 21 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 22 | url "$rootDir/../node_modules/react-native/android" 23 | } 24 | maven { url "https://jitpack.io" } 25 | maven { url "https://maven.google.com" } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /IconicExample/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 | -------------------------------------------------------------------------------- /IconicExample/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prscX/react-native-iconic/ed4488fa1021fcebb2255bdbb30194a29187cb2b/IconicExample/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /IconicExample/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Thu Jun 14 16:31:35 IST 2018 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-4.4-all.zip 7 | -------------------------------------------------------------------------------- /IconicExample/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 | -------------------------------------------------------------------------------- /IconicExample/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 | -------------------------------------------------------------------------------- /IconicExample/android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = "debug", 3 | properties = "debug.keystore.properties", 4 | store = "debug.keystore", 5 | visibility = [ 6 | "PUBLIC", 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /IconicExample/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 | -------------------------------------------------------------------------------- /IconicExample/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'IconicExample' 2 | include ':react-native-iconic' 3 | project(':react-native-iconic').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-iconic/android') 4 | 5 | include ':app' 6 | -------------------------------------------------------------------------------- /IconicExample/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "IconicExample", 3 | "displayName": "IconicExample" 4 | } -------------------------------------------------------------------------------- /IconicExample/index.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from 'react-native'; 2 | import App from './App'; 3 | 4 | AppRegistry.registerComponent('IconicExample', () => App); 5 | -------------------------------------------------------------------------------- /IconicExample/ios/IconicExample-tvOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | NSAppTransportSecurity 42 | 43 | 44 | NSExceptionDomains 45 | 46 | localhost 47 | 48 | NSExceptionAllowsInsecureHTTPLoads 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /IconicExample/ios/IconicExample-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /IconicExample/ios/IconicExample.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 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 24 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 25 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; }; 26 | CEF03E4120135E2700AB272B /* libRNIconic.a in Frameworks */ = {isa = PBXBuildFile; fileRef = CEF03E4020135E1F00AB272B /* libRNIconic.a */; }; 27 | /* End PBXBuildFile section */ 28 | 29 | /* Begin PBXContainerItemProxy section */ 30 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 31 | isa = PBXContainerItemProxy; 32 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 33 | proxyType = 2; 34 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 35 | remoteInfo = RCTActionSheet; 36 | }; 37 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 38 | isa = PBXContainerItemProxy; 39 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 40 | proxyType = 2; 41 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 42 | remoteInfo = RCTGeolocation; 43 | }; 44 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 45 | isa = PBXContainerItemProxy; 46 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 47 | proxyType = 2; 48 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 49 | remoteInfo = RCTImage; 50 | }; 51 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 52 | isa = PBXContainerItemProxy; 53 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 54 | proxyType = 2; 55 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 56 | remoteInfo = RCTNetwork; 57 | }; 58 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 59 | isa = PBXContainerItemProxy; 60 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 61 | proxyType = 2; 62 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 63 | remoteInfo = RCTVibration; 64 | }; 65 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 66 | isa = PBXContainerItemProxy; 67 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 68 | proxyType = 2; 69 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 70 | remoteInfo = RCTSettings; 71 | }; 72 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 73 | isa = PBXContainerItemProxy; 74 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 75 | proxyType = 2; 76 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 77 | remoteInfo = RCTWebSocket; 78 | }; 79 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 80 | isa = PBXContainerItemProxy; 81 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 82 | proxyType = 2; 83 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 84 | remoteInfo = React; 85 | }; 86 | 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 87 | isa = PBXContainerItemProxy; 88 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 89 | proxyType = 2; 90 | remoteGlobalIDString = ADD01A681E09402E00F6D226; 91 | remoteInfo = "RCTBlob-tvOS"; 92 | }; 93 | 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 94 | isa = PBXContainerItemProxy; 95 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 96 | proxyType = 2; 97 | remoteGlobalIDString = 3DBE0D001F3B181A0099AA32; 98 | remoteInfo = fishhook; 99 | }; 100 | 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 101 | isa = PBXContainerItemProxy; 102 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 103 | proxyType = 2; 104 | remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32; 105 | remoteInfo = "fishhook-tvOS"; 106 | }; 107 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 108 | isa = PBXContainerItemProxy; 109 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 110 | proxyType = 2; 111 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 112 | remoteInfo = "RCTImage-tvOS"; 113 | }; 114 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 115 | isa = PBXContainerItemProxy; 116 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 117 | proxyType = 2; 118 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 119 | remoteInfo = "RCTLinking-tvOS"; 120 | }; 121 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 122 | isa = PBXContainerItemProxy; 123 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 124 | proxyType = 2; 125 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 126 | remoteInfo = "RCTNetwork-tvOS"; 127 | }; 128 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 129 | isa = PBXContainerItemProxy; 130 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 131 | proxyType = 2; 132 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 133 | remoteInfo = "RCTSettings-tvOS"; 134 | }; 135 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 136 | isa = PBXContainerItemProxy; 137 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 138 | proxyType = 2; 139 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 140 | remoteInfo = "RCTText-tvOS"; 141 | }; 142 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 143 | isa = PBXContainerItemProxy; 144 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 145 | proxyType = 2; 146 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 147 | remoteInfo = "RCTWebSocket-tvOS"; 148 | }; 149 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 150 | isa = PBXContainerItemProxy; 151 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 152 | proxyType = 2; 153 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 154 | remoteInfo = "React-tvOS"; 155 | }; 156 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 157 | isa = PBXContainerItemProxy; 158 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 159 | proxyType = 2; 160 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 161 | remoteInfo = yoga; 162 | }; 163 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 164 | isa = PBXContainerItemProxy; 165 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 166 | proxyType = 2; 167 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 168 | remoteInfo = "yoga-tvOS"; 169 | }; 170 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 171 | isa = PBXContainerItemProxy; 172 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 173 | proxyType = 2; 174 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 175 | remoteInfo = cxxreact; 176 | }; 177 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 178 | isa = PBXContainerItemProxy; 179 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 180 | proxyType = 2; 181 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 182 | remoteInfo = "cxxreact-tvOS"; 183 | }; 184 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 185 | isa = PBXContainerItemProxy; 186 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 187 | proxyType = 2; 188 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4; 189 | remoteInfo = jschelpers; 190 | }; 191 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 192 | isa = PBXContainerItemProxy; 193 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 194 | proxyType = 2; 195 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; 196 | remoteInfo = "jschelpers-tvOS"; 197 | }; 198 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 199 | isa = PBXContainerItemProxy; 200 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 201 | proxyType = 2; 202 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 203 | remoteInfo = RCTAnimation; 204 | }; 205 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 206 | isa = PBXContainerItemProxy; 207 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 208 | proxyType = 2; 209 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 210 | remoteInfo = "RCTAnimation-tvOS"; 211 | }; 212 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 213 | isa = PBXContainerItemProxy; 214 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 215 | proxyType = 2; 216 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 217 | remoteInfo = RCTLinking; 218 | }; 219 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 220 | isa = PBXContainerItemProxy; 221 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 222 | proxyType = 2; 223 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 224 | remoteInfo = RCTText; 225 | }; 226 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = { 227 | isa = PBXContainerItemProxy; 228 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 229 | proxyType = 2; 230 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814; 231 | remoteInfo = RCTBlob; 232 | }; 233 | CEB0274520134AC700C389AB /* PBXContainerItemProxy */ = { 234 | isa = PBXContainerItemProxy; 235 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 236 | proxyType = 2; 237 | remoteGlobalIDString = EBF21BDC1FC498900052F4D5; 238 | remoteInfo = jsinspector; 239 | }; 240 | CEB0274720134AC700C389AB /* PBXContainerItemProxy */ = { 241 | isa = PBXContainerItemProxy; 242 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 243 | proxyType = 2; 244 | remoteGlobalIDString = EBF21BFA1FC4989A0052F4D5; 245 | remoteInfo = "jsinspector-tvOS"; 246 | }; 247 | CEB0274920134AC700C389AB /* PBXContainerItemProxy */ = { 248 | isa = PBXContainerItemProxy; 249 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 250 | proxyType = 2; 251 | remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7; 252 | remoteInfo = "third-party"; 253 | }; 254 | CEB0274B20134AC700C389AB /* PBXContainerItemProxy */ = { 255 | isa = PBXContainerItemProxy; 256 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 257 | proxyType = 2; 258 | remoteGlobalIDString = 3D383D3C1EBD27B6005632C8; 259 | remoteInfo = "third-party-tvOS"; 260 | }; 261 | CEB0274D20134AC700C389AB /* PBXContainerItemProxy */ = { 262 | isa = PBXContainerItemProxy; 263 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 264 | proxyType = 2; 265 | remoteGlobalIDString = 139D7E881E25C6D100323FB7; 266 | remoteInfo = "double-conversion"; 267 | }; 268 | CEB0274F20134AC700C389AB /* PBXContainerItemProxy */ = { 269 | isa = PBXContainerItemProxy; 270 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 271 | proxyType = 2; 272 | remoteGlobalIDString = 3D383D621EBD27B9005632C8; 273 | remoteInfo = "double-conversion-tvOS"; 274 | }; 275 | CEB0275120134AC700C389AB /* PBXContainerItemProxy */ = { 276 | isa = PBXContainerItemProxy; 277 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 278 | proxyType = 2; 279 | remoteGlobalIDString = 9936F3131F5F2E4B0010BF04; 280 | remoteInfo = privatedata; 281 | }; 282 | CEB0275320134AC700C389AB /* PBXContainerItemProxy */ = { 283 | isa = PBXContainerItemProxy; 284 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 285 | proxyType = 2; 286 | remoteGlobalIDString = 9936F32F1F5F2E5B0010BF04; 287 | remoteInfo = "privatedata-tvOS"; 288 | }; 289 | CEF03E3F20135E1F00AB272B /* PBXContainerItemProxy */ = { 290 | isa = PBXContainerItemProxy; 291 | containerPortal = CEF03E1620135E1F00AB272B /* RNIconic.xcodeproj */; 292 | proxyType = 2; 293 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 294 | remoteInfo = RNIconic; 295 | }; 296 | /* End PBXContainerItemProxy section */ 297 | 298 | /* Begin PBXFileReference section */ 299 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 300 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 301 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 302 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 303 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 304 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 305 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 306 | 00E356F21AD99517003FC87E /* IconicExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = IconicExampleTests.m; sourceTree = ""; }; 307 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 308 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 309 | 13B07F961A680F5B00A75B9A /* IconicExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = IconicExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 310 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = IconicExample/AppDelegate.h; sourceTree = ""; }; 311 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = IconicExample/AppDelegate.m; sourceTree = ""; }; 312 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 313 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = IconicExample/Images.xcassets; sourceTree = ""; }; 314 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = IconicExample/Info.plist; sourceTree = ""; }; 315 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = IconicExample/main.m; sourceTree = ""; }; 316 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 317 | 2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; }; 318 | 4D65A53834564A3CAFF4AADC /* libRNIconic.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNIconic.a; sourceTree = ""; }; 319 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 320 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 321 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 322 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; }; 323 | CEF03E1620135E1F00AB272B /* RNIconic.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RNIconic.xcodeproj; path = "../node_modules/react-native-iconic/ios/RNIconic.xcodeproj"; sourceTree = ""; }; 324 | /* End PBXFileReference section */ 325 | 326 | /* Begin PBXFrameworksBuildPhase section */ 327 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 328 | isa = PBXFrameworksBuildPhase; 329 | buildActionMask = 2147483647; 330 | files = ( 331 | CEF03E4120135E2700AB272B /* libRNIconic.a in Frameworks */, 332 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */, 333 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 334 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 335 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 336 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 337 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 338 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 339 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 340 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 341 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 342 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 343 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 344 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 345 | ); 346 | runOnlyForDeploymentPostprocessing = 0; 347 | }; 348 | /* End PBXFrameworksBuildPhase section */ 349 | 350 | /* Begin PBXGroup section */ 351 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 352 | isa = PBXGroup; 353 | children = ( 354 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 355 | ); 356 | name = Products; 357 | sourceTree = ""; 358 | }; 359 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 360 | isa = PBXGroup; 361 | children = ( 362 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 363 | ); 364 | name = Products; 365 | sourceTree = ""; 366 | }; 367 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 368 | isa = PBXGroup; 369 | children = ( 370 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 371 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 372 | ); 373 | name = Products; 374 | sourceTree = ""; 375 | }; 376 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 377 | isa = PBXGroup; 378 | children = ( 379 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 380 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 381 | ); 382 | name = Products; 383 | sourceTree = ""; 384 | }; 385 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 386 | isa = PBXGroup; 387 | children = ( 388 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 389 | ); 390 | name = Products; 391 | sourceTree = ""; 392 | }; 393 | 00E356EF1AD99517003FC87E /* IconicExampleTests */ = { 394 | isa = PBXGroup; 395 | children = ( 396 | 00E356F21AD99517003FC87E /* IconicExampleTests.m */, 397 | 00E356F01AD99517003FC87E /* Supporting Files */, 398 | ); 399 | path = IconicExampleTests; 400 | sourceTree = ""; 401 | }; 402 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 403 | isa = PBXGroup; 404 | children = ( 405 | 00E356F11AD99517003FC87E /* Info.plist */, 406 | ); 407 | name = "Supporting Files"; 408 | sourceTree = ""; 409 | }; 410 | 139105B71AF99BAD00B5F7CC /* Products */ = { 411 | isa = PBXGroup; 412 | children = ( 413 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 414 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 415 | ); 416 | name = Products; 417 | sourceTree = ""; 418 | }; 419 | 139FDEE71B06529A00C62182 /* Products */ = { 420 | isa = PBXGroup; 421 | children = ( 422 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 423 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 424 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */, 425 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */, 426 | ); 427 | name = Products; 428 | sourceTree = ""; 429 | }; 430 | 13B07FAE1A68108700A75B9A /* IconicExample */ = { 431 | isa = PBXGroup; 432 | children = ( 433 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 434 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 435 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 436 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 437 | 13B07FB61A68108700A75B9A /* Info.plist */, 438 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 439 | 13B07FB71A68108700A75B9A /* main.m */, 440 | ); 441 | name = IconicExample; 442 | sourceTree = ""; 443 | }; 444 | 146834001AC3E56700842450 /* Products */ = { 445 | isa = PBXGroup; 446 | children = ( 447 | 146834041AC3E56700842450 /* libReact.a */, 448 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */, 449 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 450 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 451 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 452 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 453 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */, 454 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */, 455 | CEB0274620134AC700C389AB /* libjsinspector.a */, 456 | CEB0274820134AC700C389AB /* libjsinspector-tvOS.a */, 457 | CEB0274A20134AC700C389AB /* libthird-party.a */, 458 | CEB0274C20134AC700C389AB /* libthird-party.a */, 459 | CEB0274E20134AC700C389AB /* libdouble-conversion.a */, 460 | CEB0275020134AC700C389AB /* libdouble-conversion.a */, 461 | CEB0275220134AC700C389AB /* libprivatedata.a */, 462 | CEB0275420134AC700C389AB /* libprivatedata-tvOS.a */, 463 | ); 464 | name = Products; 465 | sourceTree = ""; 466 | }; 467 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 468 | isa = PBXGroup; 469 | children = ( 470 | 2D16E6891FA4F8E400B85C8A /* libReact.a */, 471 | ); 472 | name = Frameworks; 473 | sourceTree = ""; 474 | }; 475 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 476 | isa = PBXGroup; 477 | children = ( 478 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 479 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */, 480 | ); 481 | name = Products; 482 | sourceTree = ""; 483 | }; 484 | 78C398B11ACF4ADC00677621 /* Products */ = { 485 | isa = PBXGroup; 486 | children = ( 487 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 488 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 489 | ); 490 | name = Products; 491 | sourceTree = ""; 492 | }; 493 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 494 | isa = PBXGroup; 495 | children = ( 496 | CEF03E1620135E1F00AB272B /* RNIconic.xcodeproj */, 497 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 498 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 499 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 500 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */, 501 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 502 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 503 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 504 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 505 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 506 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 507 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 508 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 509 | ); 510 | name = Libraries; 511 | sourceTree = ""; 512 | }; 513 | 832341B11AAA6A8300B99B32 /* Products */ = { 514 | isa = PBXGroup; 515 | children = ( 516 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 517 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 518 | ); 519 | name = Products; 520 | sourceTree = ""; 521 | }; 522 | 83CBB9F61A601CBA00E9B192 = { 523 | isa = PBXGroup; 524 | children = ( 525 | 13B07FAE1A68108700A75B9A /* IconicExample */, 526 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 527 | 00E356EF1AD99517003FC87E /* IconicExampleTests */, 528 | 83CBBA001A601CBA00E9B192 /* Products */, 529 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 530 | CEB0271F20134AC600C389AB /* Recovered References */, 531 | ); 532 | indentWidth = 2; 533 | sourceTree = ""; 534 | tabWidth = 2; 535 | usesTabs = 0; 536 | }; 537 | 83CBBA001A601CBA00E9B192 /* Products */ = { 538 | isa = PBXGroup; 539 | children = ( 540 | 13B07F961A680F5B00A75B9A /* IconicExample.app */, 541 | ); 542 | name = Products; 543 | sourceTree = ""; 544 | }; 545 | ADBDB9201DFEBF0600ED6528 /* Products */ = { 546 | isa = PBXGroup; 547 | children = ( 548 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */, 549 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */, 550 | ); 551 | name = Products; 552 | sourceTree = ""; 553 | }; 554 | CEB0271F20134AC600C389AB /* Recovered References */ = { 555 | isa = PBXGroup; 556 | children = ( 557 | 4D65A53834564A3CAFF4AADC /* libRNIconic.a */, 558 | ); 559 | name = "Recovered References"; 560 | sourceTree = ""; 561 | }; 562 | CEF03E1720135E1F00AB272B /* Products */ = { 563 | isa = PBXGroup; 564 | children = ( 565 | CEF03E4020135E1F00AB272B /* libRNIconic.a */, 566 | ); 567 | name = Products; 568 | sourceTree = ""; 569 | }; 570 | /* End PBXGroup section */ 571 | 572 | /* Begin PBXNativeTarget section */ 573 | 13B07F861A680F5B00A75B9A /* IconicExample */ = { 574 | isa = PBXNativeTarget; 575 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "IconicExample" */; 576 | buildPhases = ( 577 | 13B07F871A680F5B00A75B9A /* Sources */, 578 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 579 | 13B07F8E1A680F5B00A75B9A /* Resources */, 580 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 581 | ); 582 | buildRules = ( 583 | ); 584 | dependencies = ( 585 | ); 586 | name = IconicExample; 587 | productName = "Hello World"; 588 | productReference = 13B07F961A680F5B00A75B9A /* IconicExample.app */; 589 | productType = "com.apple.product-type.application"; 590 | }; 591 | /* End PBXNativeTarget section */ 592 | 593 | /* Begin PBXProject section */ 594 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 595 | isa = PBXProject; 596 | attributes = { 597 | LastUpgradeCheck = 610; 598 | ORGANIZATIONNAME = Facebook; 599 | }; 600 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "IconicExample" */; 601 | compatibilityVersion = "Xcode 3.2"; 602 | developmentRegion = English; 603 | hasScannedForEncodings = 0; 604 | knownRegions = ( 605 | en, 606 | Base, 607 | ); 608 | mainGroup = 83CBB9F61A601CBA00E9B192; 609 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 610 | projectDirPath = ""; 611 | projectReferences = ( 612 | { 613 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 614 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 615 | }, 616 | { 617 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 618 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 619 | }, 620 | { 621 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */; 622 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 623 | }, 624 | { 625 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 626 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 627 | }, 628 | { 629 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 630 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 631 | }, 632 | { 633 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 634 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 635 | }, 636 | { 637 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 638 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 639 | }, 640 | { 641 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 642 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 643 | }, 644 | { 645 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 646 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 647 | }, 648 | { 649 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 650 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 651 | }, 652 | { 653 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 654 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 655 | }, 656 | { 657 | ProductGroup = 146834001AC3E56700842450 /* Products */; 658 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 659 | }, 660 | { 661 | ProductGroup = CEF03E1720135E1F00AB272B /* Products */; 662 | ProjectRef = CEF03E1620135E1F00AB272B /* RNIconic.xcodeproj */; 663 | }, 664 | ); 665 | projectRoot = ""; 666 | targets = ( 667 | 13B07F861A680F5B00A75B9A /* IconicExample */, 668 | ); 669 | }; 670 | /* End PBXProject section */ 671 | 672 | /* Begin PBXReferenceProxy section */ 673 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 674 | isa = PBXReferenceProxy; 675 | fileType = archive.ar; 676 | path = libRCTActionSheet.a; 677 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 678 | sourceTree = BUILT_PRODUCTS_DIR; 679 | }; 680 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 681 | isa = PBXReferenceProxy; 682 | fileType = archive.ar; 683 | path = libRCTGeolocation.a; 684 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 685 | sourceTree = BUILT_PRODUCTS_DIR; 686 | }; 687 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 688 | isa = PBXReferenceProxy; 689 | fileType = archive.ar; 690 | path = libRCTImage.a; 691 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 692 | sourceTree = BUILT_PRODUCTS_DIR; 693 | }; 694 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 695 | isa = PBXReferenceProxy; 696 | fileType = archive.ar; 697 | path = libRCTNetwork.a; 698 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 699 | sourceTree = BUILT_PRODUCTS_DIR; 700 | }; 701 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 702 | isa = PBXReferenceProxy; 703 | fileType = archive.ar; 704 | path = libRCTVibration.a; 705 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 706 | sourceTree = BUILT_PRODUCTS_DIR; 707 | }; 708 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 709 | isa = PBXReferenceProxy; 710 | fileType = archive.ar; 711 | path = libRCTSettings.a; 712 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 713 | sourceTree = BUILT_PRODUCTS_DIR; 714 | }; 715 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 716 | isa = PBXReferenceProxy; 717 | fileType = archive.ar; 718 | path = libRCTWebSocket.a; 719 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 720 | sourceTree = BUILT_PRODUCTS_DIR; 721 | }; 722 | 146834041AC3E56700842450 /* libReact.a */ = { 723 | isa = PBXReferenceProxy; 724 | fileType = archive.ar; 725 | path = libReact.a; 726 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 727 | sourceTree = BUILT_PRODUCTS_DIR; 728 | }; 729 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */ = { 730 | isa = PBXReferenceProxy; 731 | fileType = archive.ar; 732 | path = "libRCTBlob-tvOS.a"; 733 | remoteRef = 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */; 734 | sourceTree = BUILT_PRODUCTS_DIR; 735 | }; 736 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */ = { 737 | isa = PBXReferenceProxy; 738 | fileType = archive.ar; 739 | path = libfishhook.a; 740 | remoteRef = 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */; 741 | sourceTree = BUILT_PRODUCTS_DIR; 742 | }; 743 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */ = { 744 | isa = PBXReferenceProxy; 745 | fileType = archive.ar; 746 | path = "libfishhook-tvOS.a"; 747 | remoteRef = 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */; 748 | sourceTree = BUILT_PRODUCTS_DIR; 749 | }; 750 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 751 | isa = PBXReferenceProxy; 752 | fileType = archive.ar; 753 | path = "libRCTImage-tvOS.a"; 754 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 755 | sourceTree = BUILT_PRODUCTS_DIR; 756 | }; 757 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 758 | isa = PBXReferenceProxy; 759 | fileType = archive.ar; 760 | path = "libRCTLinking-tvOS.a"; 761 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 762 | sourceTree = BUILT_PRODUCTS_DIR; 763 | }; 764 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 765 | isa = PBXReferenceProxy; 766 | fileType = archive.ar; 767 | path = "libRCTNetwork-tvOS.a"; 768 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 769 | sourceTree = BUILT_PRODUCTS_DIR; 770 | }; 771 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 772 | isa = PBXReferenceProxy; 773 | fileType = archive.ar; 774 | path = "libRCTSettings-tvOS.a"; 775 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 776 | sourceTree = BUILT_PRODUCTS_DIR; 777 | }; 778 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 779 | isa = PBXReferenceProxy; 780 | fileType = archive.ar; 781 | path = "libRCTText-tvOS.a"; 782 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 783 | sourceTree = BUILT_PRODUCTS_DIR; 784 | }; 785 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 786 | isa = PBXReferenceProxy; 787 | fileType = archive.ar; 788 | path = "libRCTWebSocket-tvOS.a"; 789 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 790 | sourceTree = BUILT_PRODUCTS_DIR; 791 | }; 792 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = { 793 | isa = PBXReferenceProxy; 794 | fileType = archive.ar; 795 | path = libReact.a; 796 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 797 | sourceTree = BUILT_PRODUCTS_DIR; 798 | }; 799 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 800 | isa = PBXReferenceProxy; 801 | fileType = archive.ar; 802 | path = libyoga.a; 803 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 804 | sourceTree = BUILT_PRODUCTS_DIR; 805 | }; 806 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 807 | isa = PBXReferenceProxy; 808 | fileType = archive.ar; 809 | path = libyoga.a; 810 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 811 | sourceTree = BUILT_PRODUCTS_DIR; 812 | }; 813 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 814 | isa = PBXReferenceProxy; 815 | fileType = archive.ar; 816 | path = libcxxreact.a; 817 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 818 | sourceTree = BUILT_PRODUCTS_DIR; 819 | }; 820 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 821 | isa = PBXReferenceProxy; 822 | fileType = archive.ar; 823 | path = libcxxreact.a; 824 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 825 | sourceTree = BUILT_PRODUCTS_DIR; 826 | }; 827 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = { 828 | isa = PBXReferenceProxy; 829 | fileType = archive.ar; 830 | path = libjschelpers.a; 831 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */; 832 | sourceTree = BUILT_PRODUCTS_DIR; 833 | }; 834 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = { 835 | isa = PBXReferenceProxy; 836 | fileType = archive.ar; 837 | path = libjschelpers.a; 838 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; 839 | sourceTree = BUILT_PRODUCTS_DIR; 840 | }; 841 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 842 | isa = PBXReferenceProxy; 843 | fileType = archive.ar; 844 | path = libRCTAnimation.a; 845 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 846 | sourceTree = BUILT_PRODUCTS_DIR; 847 | }; 848 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 849 | isa = PBXReferenceProxy; 850 | fileType = archive.ar; 851 | path = libRCTAnimation.a; 852 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 853 | sourceTree = BUILT_PRODUCTS_DIR; 854 | }; 855 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 856 | isa = PBXReferenceProxy; 857 | fileType = archive.ar; 858 | path = libRCTLinking.a; 859 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 860 | sourceTree = BUILT_PRODUCTS_DIR; 861 | }; 862 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 863 | isa = PBXReferenceProxy; 864 | fileType = archive.ar; 865 | path = libRCTText.a; 866 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 867 | sourceTree = BUILT_PRODUCTS_DIR; 868 | }; 869 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = { 870 | isa = PBXReferenceProxy; 871 | fileType = archive.ar; 872 | path = libRCTBlob.a; 873 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */; 874 | sourceTree = BUILT_PRODUCTS_DIR; 875 | }; 876 | CEB0274620134AC700C389AB /* libjsinspector.a */ = { 877 | isa = PBXReferenceProxy; 878 | fileType = archive.ar; 879 | path = libjsinspector.a; 880 | remoteRef = CEB0274520134AC700C389AB /* PBXContainerItemProxy */; 881 | sourceTree = BUILT_PRODUCTS_DIR; 882 | }; 883 | CEB0274820134AC700C389AB /* libjsinspector-tvOS.a */ = { 884 | isa = PBXReferenceProxy; 885 | fileType = archive.ar; 886 | path = "libjsinspector-tvOS.a"; 887 | remoteRef = CEB0274720134AC700C389AB /* PBXContainerItemProxy */; 888 | sourceTree = BUILT_PRODUCTS_DIR; 889 | }; 890 | CEB0274A20134AC700C389AB /* libthird-party.a */ = { 891 | isa = PBXReferenceProxy; 892 | fileType = archive.ar; 893 | path = "libthird-party.a"; 894 | remoteRef = CEB0274920134AC700C389AB /* PBXContainerItemProxy */; 895 | sourceTree = BUILT_PRODUCTS_DIR; 896 | }; 897 | CEB0274C20134AC700C389AB /* libthird-party.a */ = { 898 | isa = PBXReferenceProxy; 899 | fileType = archive.ar; 900 | path = "libthird-party.a"; 901 | remoteRef = CEB0274B20134AC700C389AB /* PBXContainerItemProxy */; 902 | sourceTree = BUILT_PRODUCTS_DIR; 903 | }; 904 | CEB0274E20134AC700C389AB /* libdouble-conversion.a */ = { 905 | isa = PBXReferenceProxy; 906 | fileType = archive.ar; 907 | path = "libdouble-conversion.a"; 908 | remoteRef = CEB0274D20134AC700C389AB /* PBXContainerItemProxy */; 909 | sourceTree = BUILT_PRODUCTS_DIR; 910 | }; 911 | CEB0275020134AC700C389AB /* libdouble-conversion.a */ = { 912 | isa = PBXReferenceProxy; 913 | fileType = archive.ar; 914 | path = "libdouble-conversion.a"; 915 | remoteRef = CEB0274F20134AC700C389AB /* PBXContainerItemProxy */; 916 | sourceTree = BUILT_PRODUCTS_DIR; 917 | }; 918 | CEB0275220134AC700C389AB /* libprivatedata.a */ = { 919 | isa = PBXReferenceProxy; 920 | fileType = archive.ar; 921 | path = libprivatedata.a; 922 | remoteRef = CEB0275120134AC700C389AB /* PBXContainerItemProxy */; 923 | sourceTree = BUILT_PRODUCTS_DIR; 924 | }; 925 | CEB0275420134AC700C389AB /* libprivatedata-tvOS.a */ = { 926 | isa = PBXReferenceProxy; 927 | fileType = archive.ar; 928 | path = "libprivatedata-tvOS.a"; 929 | remoteRef = CEB0275320134AC700C389AB /* PBXContainerItemProxy */; 930 | sourceTree = BUILT_PRODUCTS_DIR; 931 | }; 932 | CEF03E4020135E1F00AB272B /* libRNIconic.a */ = { 933 | isa = PBXReferenceProxy; 934 | fileType = archive.ar; 935 | path = libRNIconic.a; 936 | remoteRef = CEF03E3F20135E1F00AB272B /* PBXContainerItemProxy */; 937 | sourceTree = BUILT_PRODUCTS_DIR; 938 | }; 939 | /* End PBXReferenceProxy section */ 940 | 941 | /* Begin PBXResourcesBuildPhase section */ 942 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 943 | isa = PBXResourcesBuildPhase; 944 | buildActionMask = 2147483647; 945 | files = ( 946 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 947 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 948 | ); 949 | runOnlyForDeploymentPostprocessing = 0; 950 | }; 951 | /* End PBXResourcesBuildPhase section */ 952 | 953 | /* Begin PBXShellScriptBuildPhase section */ 954 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 955 | isa = PBXShellScriptBuildPhase; 956 | buildActionMask = 2147483647; 957 | files = ( 958 | ); 959 | inputPaths = ( 960 | ); 961 | name = "Bundle React Native code and images"; 962 | outputPaths = ( 963 | ); 964 | runOnlyForDeploymentPostprocessing = 0; 965 | shellPath = /bin/sh; 966 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 967 | }; 968 | /* End PBXShellScriptBuildPhase section */ 969 | 970 | /* Begin PBXSourcesBuildPhase section */ 971 | 13B07F871A680F5B00A75B9A /* Sources */ = { 972 | isa = PBXSourcesBuildPhase; 973 | buildActionMask = 2147483647; 974 | files = ( 975 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 976 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 977 | ); 978 | runOnlyForDeploymentPostprocessing = 0; 979 | }; 980 | /* End PBXSourcesBuildPhase section */ 981 | 982 | /* Begin PBXVariantGroup section */ 983 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 984 | isa = PBXVariantGroup; 985 | children = ( 986 | 13B07FB21A68108700A75B9A /* Base */, 987 | ); 988 | name = LaunchScreen.xib; 989 | path = IconicExample; 990 | sourceTree = ""; 991 | }; 992 | /* End PBXVariantGroup section */ 993 | 994 | /* Begin XCBuildConfiguration section */ 995 | 13B07F941A680F5B00A75B9A /* Debug */ = { 996 | isa = XCBuildConfiguration; 997 | buildSettings = { 998 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 999 | CURRENT_PROJECT_VERSION = 1; 1000 | DEAD_CODE_STRIPPING = NO; 1001 | HEADER_SEARCH_PATHS = ( 1002 | "$(inherited)", 1003 | "$(SRCROOT)/../node_modules/react-native-iconic/ios", 1004 | ); 1005 | INFOPLIST_FILE = IconicExample/Info.plist; 1006 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1007 | OTHER_LDFLAGS = ( 1008 | "$(inherited)", 1009 | "-ObjC", 1010 | "-lc++", 1011 | ); 1012 | PRODUCT_NAME = IconicExample; 1013 | TARGETED_DEVICE_FAMILY = "1,2"; 1014 | VERSIONING_SYSTEM = "apple-generic"; 1015 | }; 1016 | name = Debug; 1017 | }; 1018 | 13B07F951A680F5B00A75B9A /* Release */ = { 1019 | isa = XCBuildConfiguration; 1020 | buildSettings = { 1021 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1022 | CURRENT_PROJECT_VERSION = 1; 1023 | HEADER_SEARCH_PATHS = ( 1024 | "$(inherited)", 1025 | "$(SRCROOT)/../node_modules/react-native-iconic/ios", 1026 | ); 1027 | INFOPLIST_FILE = IconicExample/Info.plist; 1028 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1029 | OTHER_LDFLAGS = ( 1030 | "$(inherited)", 1031 | "-ObjC", 1032 | "-lc++", 1033 | ); 1034 | PRODUCT_NAME = IconicExample; 1035 | TARGETED_DEVICE_FAMILY = "1,2"; 1036 | VERSIONING_SYSTEM = "apple-generic"; 1037 | }; 1038 | name = Release; 1039 | }; 1040 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 1041 | isa = XCBuildConfiguration; 1042 | buildSettings = { 1043 | ALWAYS_SEARCH_USER_PATHS = NO; 1044 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1045 | CLANG_CXX_LIBRARY = "libc++"; 1046 | CLANG_ENABLE_MODULES = YES; 1047 | CLANG_ENABLE_OBJC_ARC = YES; 1048 | CLANG_WARN_BOOL_CONVERSION = YES; 1049 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1050 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1051 | CLANG_WARN_EMPTY_BODY = YES; 1052 | CLANG_WARN_ENUM_CONVERSION = YES; 1053 | CLANG_WARN_INT_CONVERSION = YES; 1054 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1055 | CLANG_WARN_UNREACHABLE_CODE = YES; 1056 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1057 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1058 | COPY_PHASE_STRIP = NO; 1059 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1060 | GCC_C_LANGUAGE_STANDARD = gnu99; 1061 | GCC_DYNAMIC_NO_PIC = NO; 1062 | GCC_OPTIMIZATION_LEVEL = 0; 1063 | GCC_PREPROCESSOR_DEFINITIONS = ( 1064 | "DEBUG=1", 1065 | "$(inherited)", 1066 | ); 1067 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1068 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1069 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1070 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1071 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1072 | GCC_WARN_UNUSED_FUNCTION = YES; 1073 | GCC_WARN_UNUSED_VARIABLE = YES; 1074 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1075 | MTL_ENABLE_DEBUG_INFO = YES; 1076 | ONLY_ACTIVE_ARCH = YES; 1077 | SDKROOT = iphoneos; 1078 | }; 1079 | name = Debug; 1080 | }; 1081 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1082 | isa = XCBuildConfiguration; 1083 | buildSettings = { 1084 | ALWAYS_SEARCH_USER_PATHS = NO; 1085 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1086 | CLANG_CXX_LIBRARY = "libc++"; 1087 | CLANG_ENABLE_MODULES = YES; 1088 | CLANG_ENABLE_OBJC_ARC = YES; 1089 | CLANG_WARN_BOOL_CONVERSION = YES; 1090 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1091 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1092 | CLANG_WARN_EMPTY_BODY = YES; 1093 | CLANG_WARN_ENUM_CONVERSION = YES; 1094 | CLANG_WARN_INT_CONVERSION = YES; 1095 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1096 | CLANG_WARN_UNREACHABLE_CODE = YES; 1097 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1098 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1099 | COPY_PHASE_STRIP = YES; 1100 | ENABLE_NS_ASSERTIONS = NO; 1101 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1102 | GCC_C_LANGUAGE_STANDARD = gnu99; 1103 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1104 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1105 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1106 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1107 | GCC_WARN_UNUSED_FUNCTION = YES; 1108 | GCC_WARN_UNUSED_VARIABLE = YES; 1109 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1110 | MTL_ENABLE_DEBUG_INFO = NO; 1111 | SDKROOT = iphoneos; 1112 | VALIDATE_PRODUCT = YES; 1113 | }; 1114 | name = Release; 1115 | }; 1116 | /* End XCBuildConfiguration section */ 1117 | 1118 | /* Begin XCConfigurationList section */ 1119 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "IconicExample" */ = { 1120 | isa = XCConfigurationList; 1121 | buildConfigurations = ( 1122 | 13B07F941A680F5B00A75B9A /* Debug */, 1123 | 13B07F951A680F5B00A75B9A /* Release */, 1124 | ); 1125 | defaultConfigurationIsVisible = 0; 1126 | defaultConfigurationName = Release; 1127 | }; 1128 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "IconicExample" */ = { 1129 | isa = XCConfigurationList; 1130 | buildConfigurations = ( 1131 | 83CBBA201A601CBA00E9B192 /* Debug */, 1132 | 83CBBA211A601CBA00E9B192 /* Release */, 1133 | ); 1134 | defaultConfigurationIsVisible = 0; 1135 | defaultConfigurationName = Release; 1136 | }; 1137 | /* End XCConfigurationList section */ 1138 | }; 1139 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1140 | } 1141 | -------------------------------------------------------------------------------- /IconicExample/ios/IconicExample.xcodeproj/xcshareddata/xcschemes/IconicExample-tvOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /IconicExample/ios/IconicExample.xcodeproj/xcshareddata/xcschemes/IconicExample.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /IconicExample/ios/IconicExample/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 | -------------------------------------------------------------------------------- /IconicExample/ios/IconicExample/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import "AppDelegate.h" 11 | 12 | #import 13 | #import 14 | 15 | @implementation AppDelegate 16 | 17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 18 | { 19 | NSURL *jsCodeLocation; 20 | 21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 22 | 23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 24 | moduleName:@"IconicExample" 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 | -------------------------------------------------------------------------------- /IconicExample/ios/IconicExample/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 | -------------------------------------------------------------------------------- /IconicExample/ios/IconicExample/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 | } -------------------------------------------------------------------------------- /IconicExample/ios/IconicExample/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /IconicExample/ios/IconicExample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | IconicExample 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UIViewControllerBasedStatusBarAppearance 40 | 41 | NSLocationWhenInUseUsageDescription 42 | 43 | NSAppTransportSecurity 44 | 45 | 46 | NSExceptionDomains 47 | 48 | localhost 49 | 50 | NSExceptionAllowsInsecureHTTPLoads 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /IconicExample/ios/IconicExample/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 | -------------------------------------------------------------------------------- /IconicExample/ios/IconicExampleTests/IconicExampleTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | #import 12 | 13 | #import 14 | #import 15 | 16 | #define TIMEOUT_SECONDS 600 17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 18 | 19 | @interface IconicExampleTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation IconicExampleTests 24 | 25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 26 | { 27 | if (test(view)) { 28 | return YES; 29 | } 30 | for (UIView *subview in [view subviews]) { 31 | if ([self findSubviewInView:subview matching:test]) { 32 | return YES; 33 | } 34 | } 35 | return NO; 36 | } 37 | 38 | - (void)testRendersWelcomeScreen 39 | { 40 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 42 | BOOL foundElement = NO; 43 | 44 | __block NSString *redboxError = nil; 45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 46 | if (level >= RCTLogLevelError) { 47 | redboxError = message; 48 | } 49 | }); 50 | 51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 54 | 55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 57 | return YES; 58 | } 59 | return NO; 60 | }]; 61 | } 62 | 63 | RCTSetLogFunction(RCTDefaultLogFunction); 64 | 65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 67 | } 68 | 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /IconicExample/ios/IconicExampleTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /IconicExample/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "IconicExample", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "node node_modules/react-native/local-cli/cli.js start", 7 | "test": "jest" 8 | }, 9 | "dependencies": { 10 | "react": "16.2.0", 11 | "react-native": "0.52.0", 12 | "react-native-iconic": "../" 13 | }, 14 | "devDependencies": { 15 | "babel-jest": "22.1.0", 16 | "babel-preset-react-native": "4.0.0", 17 | "jest": "22.1.4", 18 | "react-test-renderer": "16.2.0" 19 | }, 20 | "jest": { 21 | "preset": "react-native" 22 | } 23 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | 2 | 3 | Apache License 4 | Version 2.0, January 2004 5 | http://www.apache.org/licenses/ 6 | 7 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 8 | 9 | 1. Definitions. 10 | 11 | "License" shall mean the terms and conditions for use, reproduction, 12 | and distribution as defined by Sections 1 through 9 of this document. 13 | 14 | "Licensor" shall mean the copyright owner or entity authorized by 15 | the copyright owner that is granting the License. 16 | 17 | "Legal Entity" shall mean the union of the acting entity and all 18 | other entities that control, are controlled by, or are under common 19 | control with that entity. For the purposes of this definition, 20 | "control" means (i) the power, direct or indirect, to cause the 21 | direction or management of such entity, whether by contract or 22 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 23 | outstanding shares, or (iii) beneficial ownership of such entity. 24 | 25 | "You" (or "Your") shall mean an individual or Legal Entity 26 | exercising permissions granted by this License. 27 | 28 | "Source" form shall mean the preferred form for making modifications, 29 | including but not limited to software source code, documentation 30 | source, and configuration files. 31 | 32 | "Object" form shall mean any form resulting from mechanical 33 | transformation or translation of a Source form, including but 34 | not limited to compiled object code, generated documentation, 35 | and conversions to other media types. 36 | 37 | "Work" shall mean the work of authorship, whether in Source or 38 | Object form, made available under the License, as indicated by a 39 | copyright notice that is included in or attached to the work 40 | (an example is provided in the Appendix below). 41 | 42 | "Derivative Works" shall mean any work, whether in Source or Object 43 | form, that is based on (or derived from) the Work and for which the 44 | editorial revisions, annotations, elaborations, or other modifications 45 | represent, as a whole, an original work of authorship. For the purposes 46 | of this License, Derivative Works shall not include works that remain 47 | separable from, or merely link (or bind by name) to the interfaces of, 48 | the Work and Derivative Works thereof. 49 | 50 | "Contribution" shall mean any work of authorship, including 51 | the original version of the Work and any modifications or additions 52 | to that Work or Derivative Works thereof, that is intentionally 53 | submitted to Licensor for inclusion in the Work by the copyright owner 54 | or by an individual or Legal Entity authorized to submit on behalf of 55 | the copyright owner. For the purposes of this definition, "submitted" 56 | means any form of electronic, verbal, or written communication sent 57 | to the Licensor or its representatives, including but not limited to 58 | communication on electronic mailing lists, source code control systems, 59 | and issue tracking systems that are managed by, or on behalf of, the 60 | Licensor for the purpose of discussing and improving the Work, but 61 | excluding communication that is conspicuously marked or otherwise 62 | designated in writing by the copyright owner as "Not a Contribution." 63 | 64 | "Contributor" shall mean Licensor and any individual or Legal Entity 65 | on behalf of whom a Contribution has been received by Licensor and 66 | subsequently incorporated within the Work. 67 | 68 | 2. Grant of Copyright License. Subject to the terms and conditions of 69 | this License, each Contributor hereby grants to You a perpetual, 70 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 71 | copyright license to reproduce, prepare Derivative Works of, 72 | publicly display, publicly perform, sublicense, and distribute the 73 | Work and such Derivative Works in Source or Object form. 74 | 75 | 3. Grant of Patent License. Subject to the terms and conditions of 76 | this License, each Contributor hereby grants to You a perpetual, 77 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 78 | (except as stated in this section) patent license to make, have made, 79 | use, offer to sell, sell, import, and otherwise transfer the Work, 80 | where such license applies only to those patent claims licensable 81 | by such Contributor that are necessarily infringed by their 82 | Contribution(s) alone or by combination of their Contribution(s) 83 | with the Work to which such Contribution(s) was submitted. If You 84 | institute patent litigation against any entity (including a 85 | cross-claim or counterclaim in a lawsuit) alleging that the Work 86 | or a Contribution incorporated within the Work constitutes direct 87 | or contributory patent infringement, then any patent licenses 88 | granted to You under this License for that Work shall terminate 89 | as of the date such litigation is filed. 90 | 91 | 4. Redistribution. You may reproduce and distribute copies of the 92 | Work or Derivative Works thereof in any medium, with or without 93 | modifications, and in Source or Object form, provided that You 94 | meet the following conditions: 95 | 96 | (a) You must give any other recipients of the Work or 97 | Derivative Works a copy of this License; and 98 | 99 | (b) You must cause any modified files to carry prominent notices 100 | stating that You changed the files; and 101 | 102 | (c) You must retain, in the Source form of any Derivative Works 103 | that You distribute, all copyright, patent, trademark, and 104 | attribution notices from the Source form of the Work, 105 | excluding those notices that do not pertain to any part of 106 | the Derivative Works; and 107 | 108 | (d) If the Work includes a "NOTICE" text file as part of its 109 | distribution, then any Derivative Works that You distribute must 110 | include a readable copy of the attribution notices contained 111 | within such NOTICE file, excluding those notices that do not 112 | pertain to any part of the Derivative Works, in at least one 113 | of the following places: within a NOTICE text file distributed 114 | as part of the Derivative Works; within the Source form or 115 | documentation, if provided along with the Derivative Works; or, 116 | within a display generated by the Derivative Works, if and 117 | wherever such third-party notices normally appear. The contents 118 | of the NOTICE file are for informational purposes only and 119 | do not modify the License. You may add Your own attribution 120 | notices within Derivative Works that You distribute, alongside 121 | or as an addendum to the NOTICE text from the Work, provided 122 | that such additional attribution notices cannot be construed 123 | as modifying the License. 124 | 125 | You may add Your own copyright statement to Your modifications and 126 | may provide additional or different license terms and conditions 127 | for use, reproduction, or distribution of Your modifications, or 128 | for any such Derivative Works as a whole, provided Your use, 129 | reproduction, and distribution of the Work otherwise complies with 130 | the conditions stated in this License. 131 | 132 | 5. Submission of Contributions. Unless You explicitly state otherwise, 133 | any Contribution intentionally submitted for inclusion in the Work 134 | by You to the Licensor shall be under the terms and conditions of 135 | this License, without any additional terms or conditions. 136 | Notwithstanding the above, nothing herein shall supersede or modify 137 | the terms of any separate license agreement you may have executed 138 | with Licensor regarding such Contributions. 139 | 140 | 6. Trademarks. This License does not grant permission to use the trade 141 | names, trademarks, service marks, or product names of the Licensor, 142 | except as required for reasonable and customary use in describing the 143 | origin of the Work and reproducing the content of the NOTICE file. 144 | 145 | 7. Disclaimer of Warranty. Unless required by applicable law or 146 | agreed to in writing, Licensor provides the Work (and each 147 | Contributor provides its Contributions) on an "AS IS" BASIS, 148 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 149 | implied, including, without limitation, any warranties or conditions 150 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 151 | PARTICULAR PURPOSE. You are solely responsible for determining the 152 | appropriateness of using or redistributing the Work and assume any 153 | risks associated with Your exercise of permissions under this License. 154 | 155 | 8. Limitation of Liability. In no event and under no legal theory, 156 | whether in tort (including negligence), contract, or otherwise, 157 | unless required by applicable law (such as deliberate and grossly 158 | negligent acts) or agreed to in writing, shall any Contributor be 159 | liable to You for damages, including any direct, indirect, special, 160 | incidental, or consequential damages of any character arising as a 161 | result of this License or out of the use or inability to use the 162 | Work (including but not limited to damages for loss of goodwill, 163 | work stoppage, computer failure or malfunction, or any and all 164 | other commercial damages or losses), even if such Contributor 165 | has been advised of the possibility of such damages. 166 | 167 | 9. Accepting Warranty or Additional Liability. While redistributing 168 | the Work or Derivative Works thereof, You may choose to offer, 169 | and charge a fee for, acceptance of support, warranty, indemnity, 170 | or other liability obligations and/or rights consistent with this 171 | License. However, in accepting such obligations, You may act only 172 | on Your own behalf and on Your sole responsibility, not on behalf 173 | of any other Contributor, and only if You agree to indemnify, 174 | defend, and hold each Contributor harmless for any liability 175 | incurred by, or claims asserted against, such Contributor by reason 176 | of your accepting any such warranty or additional liability. 177 | 178 | END OF TERMS AND CONDITIONS 179 | 180 | APPENDIX: How to apply the Apache License to your work. 181 | 182 | To apply the Apache License to your work, attach the following 183 | boilerplate notice, with the fields enclosed by brackets "[]" 184 | replaced with your own identifying information. (Don't include 185 | the brackets!) The text should be enclosed in the appropriate 186 | comment syntax for the file format. We also recommend that a 187 | file or class name and description of purpose be included on the 188 | same "printed page" as the copyright notice for easier 189 | identification within third-party archives. 190 | 191 | Copyright @ [Pranav Raj Singh Chauhan] 192 | 193 | Licensed under the Apache License, Version 2.0 (the "License"); 194 | you may not use this file except in compliance with the License. 195 | You may obtain a copy of the License at 196 | 197 | http://www.apache.org/licenses/LICENSE-2.0 198 | 199 | Unless required by applicable law or agreed to in writing, software 200 | distributed under the License is distributed on an "AS IS" BASIS, 201 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 202 | See the License for the specific language governing permissions and 203 | limitations under the License. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 |

3 | 4 |

5 | 6 |

7 | 8 |

9 | 10 | PRs Welcome 11 | 12 |

13 | 14 | 15 | ReactNative: Native Iconic (Android/iOS): Deprecated 16 | 17 | Due to time constraint, this library is deprecated and not maintained anymore, You can still use this library. 18 | 19 | If this project has helped you out, please support us with a star 🌟 20 |

21 | 22 | React Native Bridge for below native libraries: 23 | 24 | 25 | | **[iOS: VBFPopFlatButton](https://github.com/victorBaro/VBFPopFlatButton)** | 26 | | ----------------- | 27 | | Flat button with 21 different states and 2 types animated using pop. | 28 | 29 | 30 | | **Android: [Android: balysv/material-menu](https://github.com/balysv/material-menu)** | 31 | | ----------------- | 32 | | | 33 | 34 | > Morphing Android menu, back, dismiss and check buttons 35 | 36 | 37 | | **Android: [Android: zagum/Android-ExpandIcon](https://github.com/zagum/Android-ExpandIcon)** | 38 | | ----------------- | 39 | | | 40 | 41 | 42 | 43 | ## 📖 Getting started 44 | 45 | `$ npm install react-native-iconic --save` 46 | 47 | `$ react-native link react-native-iconic` 48 | 49 | - **Android** 50 | 51 | Please add below snippet into your app build.gradle: 52 | 53 | ```javascript 54 | buildscript { 55 | repositories { 56 | jcenter() 57 | maven { url "https://maven.google.com" } 58 | maven { url "https://jitpack.io" } 59 | ... 60 | } 61 | } 62 | 63 | allprojects { 64 | repositories { 65 | mavenLocal() 66 | jcenter() 67 | maven { url "https://maven.google.com" } 68 | maven { url "https://jitpack.io" } 69 | ... 70 | } 71 | } 72 | ``` 73 | 74 | - **iOS** 75 | 76 | - After `react-native link react-native-iconic`, please verify `node_modules/react-native-iconic/ios/` contains `Pods` folder. If does not exist please execute `pod install` command on `node_modules/react-native-iconic/ios/`, if any error => try `pod repo update` then `pod install` 77 | 78 | 79 | 80 | ## 💻 Usage 81 | 82 | ```javascript 83 | import RNIconic from 'react-native-iconic'; 84 | 85 | // TODO: What to do with the module? 86 | 87 | ``` 88 | 89 | ## Shapes 90 | 91 | **iOS** 92 | - `Add, Minus, Close, Back, Forward, Menu, Download, Share, DownBasic, UpBasic, Paused, DownArrow, RightTriangle, LeftTriangle, UpTriangle, DownTriangle, Ok, Rewind, FastForward, Square` 93 | 94 | **Android** 95 | - `BURGER, ARROW, X, CHECK` 96 | - `DownBasic, UpBasic` 97 | 98 | ## 💡 Props 99 | 100 | - **Generic** 101 | 102 | | Prop | Type | Default | Note | 103 | | ----------------- | ---------- | ------- | ---------------------------------------------------------------------------------------------------------- | 104 | | `shape` | `array` | | Array of shape sequence 105 | | `selection` | `int` | | Default position of shape 106 | | `color` | `string` | | Specify icon color | 107 | | `size` | `int` | | Size of Icon | | 108 | | `disabled` | `bool` | | Disabling the Icon Button | | 109 | | `onChange` | `func` | | It is invoke when the value of button is change 110 | | `tintColor` | `array` | | Color of background circle | 111 | 112 | - **iOS** 113 | 114 | | Prop | Type | Default | Note | 115 | | ----------------- | ---------- | ------- | ---------------------------------------------------------------------------------------------------------- | 116 | | `lineThickness` | `string` | | Thickness of icon line | 117 | | `rounded` | `bool` | | For having circle in background | 118 | 119 | 120 | ## ✨ Credits 121 | 122 | - iOS Lib: [VBFPopFlatButton](https://github.com/victorBaro/VBFPopFlatButton) for iOS implement 123 | - Android Lib: [balysv/material-menu](https://github.com/balysv/material-menu) for Android implement 124 | - Android Lib: [zagum/Android-ExpandIcon](https://github.com/zagum/Android-ExpandIcon) 125 | 126 | ## 🤔 How to contribute 127 | Have an idea? Found a bug? Please raise to [ISSUES](https://github.com/prscX/react-native-iconic/issues). 128 | Contributions are welcome and are greatly appreciated! Every little bit helps, and credit will always be given. 129 | 130 | ## 💫 Where is this library used? 131 | If you are using this library in one of your projects, add it in this list below. ✨ 132 | 133 | 134 | ## 📜 License 135 | This library is provided under the Apache License. 136 | 137 | RNIconic @ [prscX](https://github.com/prscX) 138 | 139 | ## 💖 Support my projects 140 | I open-source almost everything I can, and I try to reply everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications for free! You can even change the source code and redistribute (even resell it). 141 | 142 | However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it: 143 | * Starring and sharing the projects you like 🚀 144 | * If you're feeling especially charitable, please follow [prscX](https://github.com/prscX) on GitHub. 145 | 146 | Buy Me A Coffee 147 | 148 | Thanks! ❤️ 149 |
150 | [prscX.github.io](https://prscx.github.io) 151 |
152 | 153 | -------------------------------------------------------------------------------- /RNIconic.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from "react"; 2 | import { StyleSheet, ViewPropTypes, Platform } from "react-native"; 3 | import PropTypes from "prop-types"; 4 | 5 | import { requireNativeComponent } from "react-native"; 6 | 7 | class RNIconic extends Component { 8 | static Shapes = { 9 | Default: "default", 10 | Add: "add", 11 | Minus: "minus", 12 | Close: "close", 13 | Back: "back", 14 | Forward: "forward", 15 | Menu: "menu", 16 | Download: "download", 17 | Share: "share", 18 | DownBasic: "down-basic", 19 | UpBasic: "up-basic", 20 | Paused: "paused", 21 | DownArrow: "down-arrow", 22 | RightTriangle: "right-triangle", 23 | LeftTriangle: "left-triangle", 24 | UpTriangle: "up-triangle", 25 | DownTriangle: "down-triangle", 26 | Ok: "ok", 27 | Rewind: "rewind", 28 | FastForward: "fast-forward", 29 | Square: "square", 30 | BURGER: "BURGER", 31 | ARROW: "ARROW", 32 | X: "X", 33 | CHECK: "CHECK" 34 | }; 35 | 36 | static propTypes = { 37 | ...ViewPropTypes, 38 | 39 | size: PropTypes.number, 40 | rounded: PropTypes.bool, 41 | tintColor: PropTypes.string, 42 | lineThickness: PropTypes.number, 43 | color: PropTypes.string, 44 | shape: PropTypes.array || PropTypes.string, 45 | disable: PropTypes.bool, 46 | selection: PropTypes.number, 47 | onChange: PropTypes.func 48 | }; 49 | 50 | static defaultProps = { 51 | size: 100, 52 | selection: 0, 53 | disabled: false, 54 | backgroundColor: "#FFFFFF" 55 | }; 56 | 57 | _onChange = event => { 58 | this.props.onChange && this.props.onChange(event.nativeEvent.value); 59 | }; 60 | 61 | render() { 62 | return ( 63 | { 65 | this._iconicButton = ref; 66 | }} 67 | style={{ width: this.props.size, height: this.props.size }} 68 | tintColor={this.props.tintColor} 69 | size={this.props.size} 70 | disable={this.props.disabled} 71 | shape={this.props.shape} 72 | color={this.props.color} 73 | selection={this.props.selection} 74 | onChange={this._onChange} 75 | /> 76 | ); 77 | } 78 | } 79 | 80 | const IconicButton = requireNativeComponent("RNIconic", RNIconic, { 81 | nativeOnly: { onChange: true } 82 | }); 83 | 84 | export default RNIconic; 85 | -------------------------------------------------------------------------------- /android/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /android/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | android 4 | Project android created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.buildship.core.gradleprojectbuilder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.buildship.core.gradleprojectnature 22 | 23 | 24 | -------------------------------------------------------------------------------- /android/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | connection.project.dir= 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | 2 | buildscript { 3 | repositories { 4 | jcenter() 5 | maven { url "https://maven.google.com" } 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.1.3' 10 | } 11 | } 12 | 13 | apply plugin: 'com.android.library' 14 | 15 | android { 16 | compileSdkVersion 27 17 | buildToolsVersion "27.0.3" 18 | 19 | defaultConfig { 20 | minSdkVersion 16 21 | targetSdkVersion 27 22 | versionCode 1 23 | versionName "1.0" 24 | } 25 | lintOptions { 26 | abortOnError false 27 | } 28 | } 29 | 30 | repositories { 31 | jcenter() 32 | mavenCentral() 33 | maven { url "https://maven.google.com" } 34 | } 35 | 36 | dependencies { 37 | compile 'com.facebook.react:react-native:+' 38 | compile 'com.github.prscX:material-menu:1ce715ab5d0abf3859e3f0219454b76a1371ced8' 39 | compile 'com.github.prscX:Android-ExpandIcon:fa9d3ca18a10bc8f68ff3dce0b6165a6ce719cef' 40 | } 41 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prscX/react-native-iconic/ed4488fa1021fcebb2255bdbb30194a29187cb2b/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sun Jan 21 15:43:50 IST 2018 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-4.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 | # Attempt to set APP_HOME 46 | # Resolve links: $0 may be a link 47 | PRG="$0" 48 | # Need this for relative symlinks. 49 | while [ -h "$PRG" ] ; do 50 | ls=`ls -ld "$PRG"` 51 | link=`expr "$ls" : '.*-> \(.*\)$'` 52 | if expr "$link" : '/.*' > /dev/null; then 53 | PRG="$link" 54 | else 55 | PRG=`dirname "$PRG"`"/$link" 56 | fi 57 | done 58 | SAVED="`pwd`" 59 | cd "`dirname \"$PRG\"`/" >/dev/null 60 | APP_HOME="`pwd -P`" 61 | cd "$SAVED" >/dev/null 62 | 63 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 64 | 65 | # Determine the Java command to use to start the JVM. 66 | if [ -n "$JAVA_HOME" ] ; then 67 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 68 | # IBM's JDK on AIX uses strange locations for the executables 69 | JAVACMD="$JAVA_HOME/jre/sh/java" 70 | else 71 | JAVACMD="$JAVA_HOME/bin/java" 72 | fi 73 | if [ ! -x "$JAVACMD" ] ; then 74 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 75 | 76 | Please set the JAVA_HOME variable in your environment to match the 77 | location of your Java installation." 78 | fi 79 | else 80 | JAVACMD="java" 81 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 82 | 83 | Please set the JAVA_HOME variable in your environment to match the 84 | location of your Java installation." 85 | fi 86 | 87 | # Increase the maximum file descriptors if we can. 88 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 89 | MAX_FD_LIMIT=`ulimit -H -n` 90 | if [ $? -eq 0 ] ; then 91 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 92 | MAX_FD="$MAX_FD_LIMIT" 93 | fi 94 | ulimit -n $MAX_FD 95 | if [ $? -ne 0 ] ; then 96 | warn "Could not set maximum file descriptor limit: $MAX_FD" 97 | fi 98 | else 99 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 100 | fi 101 | fi 102 | 103 | # For Darwin, add options to specify how the application appears in the dock 104 | if $darwin; then 105 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 106 | fi 107 | 108 | # For Cygwin, switch paths to Windows format before running java 109 | if $cygwin ; then 110 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 111 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 112 | JAVACMD=`cygpath --unix "$JAVACMD"` 113 | 114 | # We build the pattern for arguments to be converted via cygpath 115 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 116 | SEP="" 117 | for dir in $ROOTDIRSRAW ; do 118 | ROOTDIRS="$ROOTDIRS$SEP$dir" 119 | SEP="|" 120 | done 121 | OURCYGPATTERN="(^($ROOTDIRS))" 122 | # Add a user-defined pattern to the cygpath arguments 123 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 124 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 125 | fi 126 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 127 | i=0 128 | for arg in "$@" ; do 129 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 130 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 131 | 132 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 133 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 134 | else 135 | eval `echo args$i`="\"$arg\"" 136 | fi 137 | i=$((i+1)) 138 | done 139 | case $i in 140 | (0) set -- ;; 141 | (1) set -- "$args0" ;; 142 | (2) set -- "$args0" "$args1" ;; 143 | (3) set -- "$args0" "$args1" "$args2" ;; 144 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 145 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 146 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 147 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 148 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 149 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 150 | esac 151 | fi 152 | 153 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 154 | function splitJvmOpts() { 155 | JVM_OPTS=("$@") 156 | } 157 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 158 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 159 | 160 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 161 | -------------------------------------------------------------------------------- /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/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /android/src/main/java/ui/iconic/RNIconic.java: -------------------------------------------------------------------------------- 1 | package ui.iconic; 2 | 3 | import android.animation.Animator; 4 | import android.graphics.Color; 5 | import android.view.View; 6 | import android.view.ViewGroup; 7 | import android.widget.FrameLayout; 8 | import android.widget.LinearLayout; 9 | 10 | import com.balysv.materialmenu.MaterialMenuDrawable; 11 | import com.balysv.materialmenu.MaterialMenuView; 12 | import com.facebook.react.bridge.ReadableArray; 13 | import com.facebook.react.uimanager.ThemedReactContext; 14 | import com.facebook.react.uimanager.UIManagerModule; 15 | import com.facebook.react.uimanager.ViewGroupManager; 16 | import com.facebook.react.uimanager.annotations.ReactProp; 17 | import com.github.zagum.expandicon.ExpandIconView; 18 | 19 | import java.util.ArrayList; 20 | import java.util.Random; 21 | 22 | public class RNIconic extends ViewGroupManager { 23 | 24 | public static final String REACT_CLASS = "RNIconic"; 25 | 26 | @Override 27 | public String getName() { 28 | return REACT_CLASS; 29 | } 30 | 31 | private ArrayList shapes = new ArrayList(); 32 | private int selection = 0; 33 | private boolean disable = false; 34 | 35 | @Override 36 | protected FrameLayout createViewInstance(final ThemedReactContext reactContext) { 37 | int randomId; 38 | 39 | Random rand = new Random(); 40 | while (reactContext.getCurrentActivity().findViewById(randomId = rand.nextInt(Integer.MAX_VALUE) + 1) != null); 41 | final int viewId = randomId; 42 | 43 | final MaterialMenuView iconicButton = new MaterialMenuView(reactContext.getCurrentActivity()); 44 | iconicButton.setVisible(false); 45 | 46 | final ExpandIconView expandIconView = new ExpandIconView(reactContext.getCurrentActivity()); 47 | expandIconView.setVisibility(View.INVISIBLE); 48 | 49 | final FrameLayout frameLayout = new FrameLayout(reactContext.getCurrentActivity()); 50 | frameLayout.addView(iconicButton); 51 | frameLayout.addView(expandIconView); 52 | 53 | iconicButton.setOnClickListener(new View.OnClickListener() { 54 | @Override 55 | public void onClick(View v) { 56 | // Do not play the onClick listener if the button is disabled 57 | if(disable) 58 | return; 59 | 60 | if (selection + 1 == shapes.size()) selection = 0; 61 | else selection = selection + 1; 62 | 63 | String state = (String) shapes.get(selection); 64 | 65 | if (state.equalsIgnoreCase("BURGER")) { 66 | iconicButton.animateIconState(MaterialMenuDrawable.IconState.BURGER); 67 | } else if (state.equalsIgnoreCase("ARROW")) { 68 | iconicButton.animateIconState(MaterialMenuDrawable.IconState.ARROW); 69 | } else if (state.equalsIgnoreCase("X")) { 70 | iconicButton.animateIconState(MaterialMenuDrawable.IconState.X); 71 | } else if (state.equalsIgnoreCase("CHECK")) { 72 | iconicButton.animateIconState(MaterialMenuDrawable.IconState.CHECK); 73 | } 74 | 75 | int id = frameLayout.getId(); 76 | reactContext.getNativeModule(UIManagerModule.class).getEventDispatcher().dispatchEvent( 77 | new RNIconicEvent(id, selection) 78 | ); 79 | } 80 | }); 81 | 82 | 83 | expandIconView.setOnClickListener(new View.OnClickListener() { 84 | @Override 85 | public void onClick(View v) { 86 | if (selection + 1 == shapes.size()) selection = 0; 87 | else selection = selection + 1; 88 | 89 | String state = (String) shapes.get(selection); 90 | 91 | if (state.equalsIgnoreCase("up-basic")) { 92 | expandIconView.switchState(true); 93 | } else if (state.equalsIgnoreCase("down-basic")) { 94 | expandIconView.switchState(true); 95 | } 96 | 97 | int id = frameLayout.getId(); 98 | reactContext.getNativeModule(UIManagerModule.class).getEventDispatcher().dispatchEvent( 99 | new RNIconicEvent(id, selection) 100 | ); 101 | } 102 | }); 103 | 104 | return frameLayout; 105 | } 106 | 107 | @ReactProp(name = "size") 108 | public void setSize(FrameLayout iconicButtonFrame, int size) { 109 | MaterialMenuView iconicButton = (MaterialMenuView) iconicButtonFrame.getChildAt(0); 110 | ExpandIconView expandIconView = (ExpandIconView) iconicButtonFrame.getChildAt(1); 111 | 112 | iconicButton.onSizeChanged(size, size, size, size); 113 | expandIconView.onSizeChanged(size, size, size, size); 114 | } 115 | 116 | @ReactProp(name = "color") 117 | public void setColor(FrameLayout iconicButtonFrame, String color) { 118 | MaterialMenuView iconicButton = (MaterialMenuView) iconicButtonFrame.getChildAt(0); 119 | ExpandIconView expandIconView = (ExpandIconView) iconicButtonFrame.getChildAt(1); 120 | 121 | iconicButton.setColor(Color.parseColor(color)); 122 | expandIconView.setColor(Color.parseColor(color)); 123 | } 124 | 125 | @ReactProp(name = "disable") 126 | public void setDisable(FrameLayout iconicButtonFrame, boolean dis) { 127 | disable = dis; 128 | } 129 | 130 | @ReactProp(name = "selection") 131 | public void setSelection(FrameLayout iconicButtonFrame, int selc) { 132 | selection = selc; 133 | 134 | // Animate the icon if the selection changes 135 | setState(iconicButtonFrame, selection); 136 | } 137 | 138 | @ReactProp(name = "shape") 139 | public void setShape(FrameLayout iconicButtonFrame, ReadableArray shps) { 140 | shapes = shps.toArrayList(); 141 | 142 | setState(iconicButtonFrame, selection); 143 | } 144 | 145 | private void setState(FrameLayout iconicButtonFrame, int selection) { 146 | MaterialMenuView iconicButton = (MaterialMenuView) iconicButtonFrame.getChildAt(0); 147 | ExpandIconView expandIconView = (ExpandIconView) iconicButtonFrame.getChildAt(1); 148 | 149 | String state = ""; 150 | 151 | // Make sure the shapes array is filled and the selection is in range. Otherwise, draw the default state "ARROW" 152 | if(!shapes.isEmpty() && shapes.size() > selection) 153 | state = (String) shapes.get(selection); 154 | 155 | if (state.equalsIgnoreCase("BURGER")) { 156 | iconicButton.setVisible(true); 157 | iconicButton.setIconState(MaterialMenuDrawable.IconState.BURGER); 158 | } else if (state.equalsIgnoreCase("ARROW")) { 159 | iconicButton.setVisible(true); 160 | iconicButton.setIconState(MaterialMenuDrawable.IconState.ARROW); 161 | } else if (state.equalsIgnoreCase("X")) { 162 | iconicButton.setVisible(true); 163 | iconicButton.setIconState(MaterialMenuDrawable.IconState.X); 164 | } else if (state.equalsIgnoreCase("CHECK")) { 165 | iconicButton.setVisible(true); 166 | iconicButton.setIconState(MaterialMenuDrawable.IconState.CHECK); 167 | } else if (state.equalsIgnoreCase("up-basic")) { 168 | expandIconView.setVisibility(View.VISIBLE); 169 | expandIconView.setState(ExpandIconView.LESS, false); 170 | } else if (state.equalsIgnoreCase("down-basic")) { 171 | expandIconView.setVisibility(View.VISIBLE); 172 | expandIconView.setState(ExpandIconView.MORE, false); 173 | } 174 | } 175 | } -------------------------------------------------------------------------------- /android/src/main/java/ui/iconic/RNIconicEvent.java: -------------------------------------------------------------------------------- 1 | package ui.iconic; 2 | 3 | import com.facebook.react.bridge.Arguments; 4 | import com.facebook.react.bridge.WritableMap; 5 | import com.facebook.react.uimanager.events.Event; 6 | import com.facebook.react.uimanager.events.RCTEventEmitter; 7 | 8 | public class RNIconicEvent extends Event { 9 | 10 | public static final String EVENT_NAME = "topChange"; 11 | 12 | private final int mSelection; 13 | 14 | public RNIconicEvent(int viewId, int selection) { 15 | super(viewId); 16 | mSelection = selection; 17 | } 18 | 19 | public int getSelection() { 20 | return mSelection; 21 | } 22 | 23 | @Override 24 | public String getEventName() { 25 | return EVENT_NAME; 26 | } 27 | 28 | @Override 29 | public short getCoalescingKey() { 30 | // All switch events for a given view can be coalesced. 31 | return 0; 32 | } 33 | 34 | @Override 35 | public void dispatch(RCTEventEmitter rctEventEmitter) { 36 | rctEventEmitter.receiveEvent(getViewTag(), getEventName(), serializeEventData()); 37 | } 38 | 39 | private WritableMap serializeEventData() { 40 | WritableMap eventData = Arguments.createMap(); 41 | eventData.putInt("target", getViewTag()); 42 | eventData.putInt("value", getSelection()); 43 | return eventData; 44 | } 45 | } -------------------------------------------------------------------------------- /android/src/main/java/ui/iconic/RNIconicModule.java: -------------------------------------------------------------------------------- 1 | 2 | package ui.iconic; 3 | 4 | import android.animation.Animator; 5 | import android.animation.ObjectAnimator; 6 | import android.app.Activity; 7 | import android.view.View; 8 | import android.view.ViewGroup; 9 | 10 | import com.facebook.react.bridge.ReactApplicationContext; 11 | import com.facebook.react.bridge.ReactContextBaseJavaModule; 12 | import com.facebook.react.bridge.ReactMethod; 13 | import com.facebook.react.bridge.Callback; 14 | import com.facebook.react.bridge.Promise; 15 | 16 | import com.facebook.react.bridge.ReadableArray; 17 | import com.facebook.react.bridge.ReadableMap; 18 | import com.facebook.react.views.scroll.ReactScrollView; 19 | 20 | import java.util.ArrayList; 21 | 22 | public class RNIconicModule extends ReactContextBaseJavaModule { 23 | 24 | private final ReactApplicationContext reactContext; 25 | 26 | public RNIconicModule(ReactApplicationContext reactContext) { 27 | super(reactContext); 28 | this.reactContext = reactContext; 29 | } 30 | 31 | @Override 32 | public String getName() { 33 | return "RNIconic"; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /android/src/main/java/ui/iconic/RNIconicPackage.java: -------------------------------------------------------------------------------- 1 | 2 | package ui.iconic; 3 | 4 | import java.util.ArrayList; 5 | import java.util.Arrays; 6 | import java.util.Collections; 7 | import java.util.List; 8 | 9 | import com.facebook.react.ReactPackage; 10 | import com.facebook.react.bridge.NativeModule; 11 | import com.facebook.react.bridge.ReactApplicationContext; 12 | import com.facebook.react.uimanager.ViewManager; 13 | import com.facebook.react.bridge.JavaScriptModule; 14 | 15 | public class RNIconicPackage implements ReactPackage { 16 | @Override 17 | public List createNativeModules(ReactApplicationContext reactContext) { 18 | List modules = new ArrayList<>(); 19 | modules.add(new RNIconicModule(reactContext)); 20 | 21 | return modules; 22 | } 23 | 24 | // Deprecated from RN 0.47 25 | public List> createJSModules() { 26 | return Collections.emptyList(); 27 | } 28 | 29 | @Override 30 | public List createViewManagers(ReactApplicationContext reactContext) { 31 | List modules = new ArrayList<>(); 32 | modules.add(new RNIconic()); 33 | 34 | return modules; 35 | } 36 | } -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment the next line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | target 'RNIconic' do 5 | # Uncomment the next line if you're using Swift or would like to use dynamic frameworks 6 | # use_frameworks! 7 | 8 | # Pods for RNIconic 9 | 10 | pod 'VBFPopFlatButton', :git => 'https://github.com/prscX/VBFPopFlatButton.git', :commit => '5ac6e640b85ed534f4d06465bfe3e5f9f114b01b' 11 | end 12 | -------------------------------------------------------------------------------- /ios/RNIconic.h: -------------------------------------------------------------------------------- 1 | 2 | #if __has_include("RCTBridgeModule.h") 3 | #import "RCTViewManager.h" 4 | #else 5 | #import 6 | #endif 7 | 8 | #import "VBFPopFlatButton.h" 9 | 10 | @interface RNIconic : RCTViewManager 11 | 12 | @property (nonatomic) NSArray *shapes; 13 | @property (nonatomic) NSNumber *selection; 14 | 15 | @end 16 | 17 | -------------------------------------------------------------------------------- /ios/RNIconic.m: -------------------------------------------------------------------------------- 1 | 2 | #import "RNIconic.h" 3 | 4 | @implementation RNIconic 5 | 6 | - (dispatch_queue_t)methodQueue { 7 | return dispatch_get_main_queue(); 8 | } 9 | 10 | 11 | - (id)init { 12 | self = [super init]; 13 | if (self) { 14 | self.selection = 0; 15 | self.shapes = [[NSArray alloc] init]; 16 | } 17 | 18 | return self; 19 | } 20 | 21 | 22 | RCT_EXPORT_MODULE() 23 | 24 | - (VBFPopFlatButton *)view { 25 | VBFPopFlatButton *iconicButton = [[VBFPopFlatButton alloc] init]; 26 | [iconicButton addTarget:self 27 | action:@selector(handleSelection:) 28 | forControlEvents:UIControlEventTouchUpInside]; 29 | 30 | return iconicButton; 31 | } 32 | 33 | RCT_CUSTOM_VIEW_PROPERTY(size, NSNumber *, VBFPopFlatButton) { 34 | view.frame = CGRectMake(0, 0, [json floatValue], [json floatValue]); 35 | [view commonSetup]; 36 | } 37 | 38 | RCT_CUSTOM_VIEW_PROPERTY(rounded, NSBoolean *, VBFPopFlatButton) { 39 | if ([json integerValue] == 1) { 40 | [view setCurrentButtonStyle:(FlatButtonStyle) buttonRoundedStyle]; 41 | } else { 42 | [view setCurrentButtonStyle:(FlatButtonStyle) buttonPlainStyle]; 43 | } 44 | } 45 | 46 | RCT_CUSTOM_VIEW_PROPERTY(lineThickness, NSNumber *, VBFPopFlatButton) { 47 | view.lineThickness = [json floatValue]; 48 | } 49 | 50 | RCT_CUSTOM_VIEW_PROPERTY(color, NSNumber *, VBFPopFlatButton) { 51 | view.tintColor = [RNIconic colorFromHexCode: json]; 52 | } 53 | 54 | RCT_CUSTOM_VIEW_PROPERTY(shape, NSArray *, VBFPopFlatButton) { 55 | self.shapes = json; 56 | [view setCurrentButtonType: [self getShape: [self.shapes objectAtIndex: [self.selection intValue]]]]; 57 | } 58 | 59 | RCT_CUSTOM_VIEW_PROPERTY(selection, NSNumber *, VBFPopFlatButton) { 60 | self.selection = json; 61 | 62 | if (self.shapes != nil && [self.shapes count] > 0) { 63 | [view setCurrentButtonType: [self getShape: [self.shapes objectAtIndex: [self.selection intValue]]]]; 64 | } 65 | } 66 | 67 | 68 | RCT_CUSTOM_VIEW_PROPERTY(tintColor, NSString *, VBFPopFlatButton) { 69 | [view setRoundBackgroundColor: [RNIconic colorFromHexCode: json]]; 70 | } 71 | 72 | 73 | -(void)handleSelection:(VBFPopFlatButton*)iconicButton { 74 | 75 | NSNumber *selection = [self selection]; 76 | NSArray *shapes = [self shapes]; 77 | 78 | long shape; 79 | 80 | if (([shapes count] - 1) != [selection intValue]) { 81 | shape = [self getShape: [shapes objectAtIndex: ([selection intValue] + 1)]]; 82 | self.selection = [NSNumber numberWithInt: [selection intValue] + 1]; 83 | } else { 84 | shape = [self getShape: [shapes objectAtIndex: 0]]; 85 | self.selection = [NSNumber numberWithInt: 0]; 86 | } 87 | 88 | [iconicButton animateToType: shape]; 89 | 90 | NSDictionary *event = @{ 91 | @"target": iconicButton.reactTag, 92 | @"value": self.selection, 93 | @"name": @"tap", 94 | }; 95 | [self.bridge.eventDispatcher sendInputEventWithName:@"topChange" body:event]; 96 | } 97 | 98 | -(long)getShape:(NSString *)shape { 99 | if ([shape isEqualToString: @"default"]) { 100 | return buttonDefaultType; 101 | } else if([shape isEqualToString: @"add"]) { 102 | return buttonAddType; 103 | } else if([shape isEqualToString: @"minus"]) { 104 | return buttonMinusType; 105 | } else if([shape isEqualToString: @"close"]) { 106 | return buttonCloseType; 107 | } else if([shape isEqualToString: @"back"]) { 108 | return buttonBackType; 109 | } else if([shape isEqualToString: @"forward"]) { 110 | return buttonForwardType; 111 | } else if([shape isEqualToString: @"menu"]) { 112 | return buttonMenuType; 113 | } else if([shape isEqualToString: @"download"]) { 114 | return buttonDownloadType; 115 | } else if([shape isEqualToString: @"share"]) { 116 | return buttonShareType; 117 | } else if([shape isEqualToString: @"down-basic"]) { 118 | return buttonDownBasicType; 119 | } else if([shape isEqualToString: @"up-basic"]) { 120 | return buttonUpBasicType; 121 | } else if([shape isEqualToString: @"paused"]) { 122 | return buttonPausedType; 123 | } else if([shape isEqualToString: @"down-arrow"]) { 124 | return buttonDownArrowType; 125 | } else if([shape isEqualToString: @"right-triangle"]) { 126 | return buttonRightTriangleType; 127 | } else if([shape isEqualToString: @"left-triangle"]) { 128 | return buttonLeftTriangleType; 129 | } else if([shape isEqualToString: @"up-triangle"]) { 130 | return buttonUpTriangleType; 131 | } else if([shape isEqualToString: @"down-triangle"]) { 132 | return buttonDownTriangleType; 133 | } else if([shape isEqualToString: @"ok"]) { 134 | return buttonOkType; 135 | } else if([shape isEqualToString: @"rewind"]) { 136 | return buttonRewindType; 137 | } else if([shape isEqualToString: @"fast-forward"]) { 138 | return buttonFastForwardType; 139 | } else if([shape isEqualToString: @"square"]) { 140 | return buttonSquareType; 141 | } 142 | 143 | return buttonDefaultType; 144 | } 145 | 146 | + (UIColor *) colorFromHexCode:(NSString *)hexString { 147 | NSString *cleanString = [hexString stringByReplacingOccurrencesOfString:@"#" withString:@""]; 148 | if([cleanString length] == 3) { 149 | cleanString = [NSString stringWithFormat:@"%@%@%@%@%@%@", 150 | [cleanString substringWithRange:NSMakeRange(0, 1)],[cleanString substringWithRange:NSMakeRange(0, 1)], 151 | [cleanString substringWithRange:NSMakeRange(1, 1)],[cleanString substringWithRange:NSMakeRange(1, 1)], 152 | [cleanString substringWithRange:NSMakeRange(2, 1)],[cleanString substringWithRange:NSMakeRange(2, 1)]]; 153 | } 154 | if([cleanString length] == 6) { 155 | cleanString = [cleanString stringByAppendingString:@"ff"]; 156 | } 157 | 158 | unsigned int baseValue; 159 | [[NSScanner scannerWithString:cleanString] scanHexInt:&baseValue]; 160 | 161 | float red = ((baseValue >> 24) & 0xFF)/255.0f; 162 | float green = ((baseValue >> 16) & 0xFF)/255.0f; 163 | float blue = ((baseValue >> 8) & 0xFF)/255.0f; 164 | float alpha = ((baseValue >> 0) & 0xFF)/255.0f; 165 | 166 | return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; 167 | } 168 | 169 | @end 170 | 171 | -------------------------------------------------------------------------------- /ios/RNIconic.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 2A3F227F522E392134F9389D /* libPods-RNIconic.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 96DD16BBC4D160BD3BE0A08C /* libPods-RNIconic.a */; }; 11 | B3E7B58A1CC2AC0600A0062D /* RNIconic.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNIconic.m */; }; 12 | CEF03E5F20135F5700AB272B /* libpop.a in Frameworks */ = {isa = PBXBuildFile; fileRef = CEF03E5C20135F5200AB272B /* libpop.a */; }; 13 | CEF03E6020135F5700AB272B /* libVBFPopFlatButton.a in Frameworks */ = {isa = PBXBuildFile; fileRef = CEF03E5E20135F5200AB272B /* libVBFPopFlatButton.a */; }; 14 | /* End PBXBuildFile section */ 15 | 16 | /* Begin PBXContainerItemProxy section */ 17 | CEF03E5920135F5200AB272B /* PBXContainerItemProxy */ = { 18 | isa = PBXContainerItemProxy; 19 | containerPortal = CEF03E5320135F5200AB272B /* Pods.xcodeproj */; 20 | proxyType = 2; 21 | remoteGlobalIDString = 8E8140C633E5B6C954D7B86DC538432D; 22 | remoteInfo = "Pods-RNIconic"; 23 | }; 24 | CEF03E5B20135F5200AB272B /* PBXContainerItemProxy */ = { 25 | isa = PBXContainerItemProxy; 26 | containerPortal = CEF03E5320135F5200AB272B /* Pods.xcodeproj */; 27 | proxyType = 2; 28 | remoteGlobalIDString = C060D4F146E17E928358B5EBCF785001; 29 | remoteInfo = pop; 30 | }; 31 | CEF03E5D20135F5200AB272B /* PBXContainerItemProxy */ = { 32 | isa = PBXContainerItemProxy; 33 | containerPortal = CEF03E5320135F5200AB272B /* Pods.xcodeproj */; 34 | proxyType = 2; 35 | remoteGlobalIDString = DD9D5678889A159AD9A3A2C374E6A82F; 36 | remoteInfo = VBFPopFlatButton; 37 | }; 38 | /* End PBXContainerItemProxy section */ 39 | 40 | /* Begin PBXCopyFilesBuildPhase section */ 41 | 58B511D91A9E6C8500147676 /* CopyFiles */ = { 42 | isa = PBXCopyFilesBuildPhase; 43 | buildActionMask = 2147483647; 44 | dstPath = "include/$(PRODUCT_NAME)"; 45 | dstSubfolderSpec = 16; 46 | files = ( 47 | ); 48 | runOnlyForDeploymentPostprocessing = 0; 49 | }; 50 | /* End PBXCopyFilesBuildPhase section */ 51 | 52 | /* Begin PBXFileReference section */ 53 | 134814201AA4EA6300B7C361 /* libRNIconic.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNIconic.a; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | 42E078141B71A52052D379A7 /* Pods-RNIconic.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNIconic.release.xcconfig"; path = "Pods/Target Support Files/Pods-RNIconic/Pods-RNIconic.release.xcconfig"; sourceTree = ""; }; 55 | 96DD16BBC4D160BD3BE0A08C /* libPods-RNIconic.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RNIconic.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 56 | ADE2CFD48E9D5279BA5E0219 /* Pods-RNIconic.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNIconic.debug.xcconfig"; path = "Pods/Target Support Files/Pods-RNIconic/Pods-RNIconic.debug.xcconfig"; sourceTree = ""; }; 57 | B3E7B5881CC2AC0600A0062D /* RNIconic.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNIconic.h; sourceTree = ""; }; 58 | B3E7B5891CC2AC0600A0062D /* RNIconic.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNIconic.m; sourceTree = ""; }; 59 | CEF03E5320135F5200AB272B /* Pods.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Pods.xcodeproj; path = Pods/Pods.xcodeproj; sourceTree = ""; }; 60 | /* End PBXFileReference section */ 61 | 62 | /* Begin PBXFrameworksBuildPhase section */ 63 | 58B511D81A9E6C8500147676 /* Frameworks */ = { 64 | isa = PBXFrameworksBuildPhase; 65 | buildActionMask = 2147483647; 66 | files = ( 67 | CEF03E5F20135F5700AB272B /* libpop.a in Frameworks */, 68 | CEF03E6020135F5700AB272B /* libVBFPopFlatButton.a in Frameworks */, 69 | 2A3F227F522E392134F9389D /* libPods-RNIconic.a in Frameworks */, 70 | ); 71 | runOnlyForDeploymentPostprocessing = 0; 72 | }; 73 | /* End PBXFrameworksBuildPhase section */ 74 | 75 | /* Begin PBXGroup section */ 76 | 134814211AA4EA7D00B7C361 /* Products */ = { 77 | isa = PBXGroup; 78 | children = ( 79 | 134814201AA4EA6300B7C361 /* libRNIconic.a */, 80 | ); 81 | name = Products; 82 | sourceTree = ""; 83 | }; 84 | 58B511D21A9E6C8500147676 = { 85 | isa = PBXGroup; 86 | children = ( 87 | B3E7B5881CC2AC0600A0062D /* RNIconic.h */, 88 | B3E7B5891CC2AC0600A0062D /* RNIconic.m */, 89 | 134814211AA4EA7D00B7C361 /* Products */, 90 | A6B04EAD32B9E8EA14E3D2DE /* Frameworks */, 91 | 5D5785AF7A0749348AEAAE20 /* Pods */, 92 | ); 93 | sourceTree = ""; 94 | }; 95 | 5D5785AF7A0749348AEAAE20 /* Pods */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | ADE2CFD48E9D5279BA5E0219 /* Pods-RNIconic.debug.xcconfig */, 99 | 42E078141B71A52052D379A7 /* Pods-RNIconic.release.xcconfig */, 100 | ); 101 | name = Pods; 102 | sourceTree = ""; 103 | }; 104 | A6B04EAD32B9E8EA14E3D2DE /* Frameworks */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | CEF03E5320135F5200AB272B /* Pods.xcodeproj */, 108 | 96DD16BBC4D160BD3BE0A08C /* libPods-RNIconic.a */, 109 | ); 110 | name = Frameworks; 111 | sourceTree = ""; 112 | }; 113 | CEF03E5420135F5200AB272B /* Products */ = { 114 | isa = PBXGroup; 115 | children = ( 116 | CEF03E5A20135F5200AB272B /* libPods-RNIconic.a */, 117 | CEF03E5C20135F5200AB272B /* libpop.a */, 118 | CEF03E5E20135F5200AB272B /* libVBFPopFlatButton.a */, 119 | ); 120 | name = Products; 121 | sourceTree = ""; 122 | }; 123 | /* End PBXGroup section */ 124 | 125 | /* Begin PBXNativeTarget section */ 126 | 58B511DA1A9E6C8500147676 /* RNIconic */ = { 127 | isa = PBXNativeTarget; 128 | buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNIconic" */; 129 | buildPhases = ( 130 | A70399F1E189608FAD3B9070 /* [CP] Check Pods Manifest.lock */, 131 | 58B511D71A9E6C8500147676 /* Sources */, 132 | 58B511D81A9E6C8500147676 /* Frameworks */, 133 | 58B511D91A9E6C8500147676 /* CopyFiles */, 134 | ); 135 | buildRules = ( 136 | ); 137 | dependencies = ( 138 | ); 139 | name = RNIconic; 140 | productName = RCTDataManager; 141 | productReference = 134814201AA4EA6300B7C361 /* libRNIconic.a */; 142 | productType = "com.apple.product-type.library.static"; 143 | }; 144 | /* End PBXNativeTarget section */ 145 | 146 | /* Begin PBXProject section */ 147 | 58B511D31A9E6C8500147676 /* Project object */ = { 148 | isa = PBXProject; 149 | attributes = { 150 | LastUpgradeCheck = 0830; 151 | ORGANIZATIONNAME = Facebook; 152 | TargetAttributes = { 153 | 58B511DA1A9E6C8500147676 = { 154 | CreatedOnToolsVersion = 6.1.1; 155 | }; 156 | }; 157 | }; 158 | buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNIconic" */; 159 | compatibilityVersion = "Xcode 3.2"; 160 | developmentRegion = English; 161 | hasScannedForEncodings = 0; 162 | knownRegions = ( 163 | en, 164 | ); 165 | mainGroup = 58B511D21A9E6C8500147676; 166 | productRefGroup = 58B511D21A9E6C8500147676; 167 | projectDirPath = ""; 168 | projectReferences = ( 169 | { 170 | ProductGroup = CEF03E5420135F5200AB272B /* Products */; 171 | ProjectRef = CEF03E5320135F5200AB272B /* Pods.xcodeproj */; 172 | }, 173 | ); 174 | projectRoot = ""; 175 | targets = ( 176 | 58B511DA1A9E6C8500147676 /* RNIconic */, 177 | ); 178 | }; 179 | /* End PBXProject section */ 180 | 181 | /* Begin PBXReferenceProxy section */ 182 | CEF03E5A20135F5200AB272B /* libPods-RNIconic.a */ = { 183 | isa = PBXReferenceProxy; 184 | fileType = archive.ar; 185 | path = "libPods-RNIconic.a"; 186 | remoteRef = CEF03E5920135F5200AB272B /* PBXContainerItemProxy */; 187 | sourceTree = BUILT_PRODUCTS_DIR; 188 | }; 189 | CEF03E5C20135F5200AB272B /* libpop.a */ = { 190 | isa = PBXReferenceProxy; 191 | fileType = archive.ar; 192 | path = libpop.a; 193 | remoteRef = CEF03E5B20135F5200AB272B /* PBXContainerItemProxy */; 194 | sourceTree = BUILT_PRODUCTS_DIR; 195 | }; 196 | CEF03E5E20135F5200AB272B /* libVBFPopFlatButton.a */ = { 197 | isa = PBXReferenceProxy; 198 | fileType = archive.ar; 199 | path = libVBFPopFlatButton.a; 200 | remoteRef = CEF03E5D20135F5200AB272B /* PBXContainerItemProxy */; 201 | sourceTree = BUILT_PRODUCTS_DIR; 202 | }; 203 | /* End PBXReferenceProxy section */ 204 | 205 | /* Begin PBXShellScriptBuildPhase section */ 206 | A70399F1E189608FAD3B9070 /* [CP] Check Pods Manifest.lock */ = { 207 | isa = PBXShellScriptBuildPhase; 208 | buildActionMask = 2147483647; 209 | files = ( 210 | ); 211 | inputPaths = ( 212 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 213 | "${PODS_ROOT}/Manifest.lock", 214 | ); 215 | name = "[CP] Check Pods Manifest.lock"; 216 | outputPaths = ( 217 | "$(DERIVED_FILE_DIR)/Pods-RNIconic-checkManifestLockResult.txt", 218 | ); 219 | runOnlyForDeploymentPostprocessing = 0; 220 | shellPath = /bin/sh; 221 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 222 | showEnvVarsInLog = 0; 223 | }; 224 | /* End PBXShellScriptBuildPhase section */ 225 | 226 | /* Begin PBXSourcesBuildPhase section */ 227 | 58B511D71A9E6C8500147676 /* Sources */ = { 228 | isa = PBXSourcesBuildPhase; 229 | buildActionMask = 2147483647; 230 | files = ( 231 | B3E7B58A1CC2AC0600A0062D /* RNIconic.m in Sources */, 232 | ); 233 | runOnlyForDeploymentPostprocessing = 0; 234 | }; 235 | /* End PBXSourcesBuildPhase section */ 236 | 237 | /* Begin XCBuildConfiguration section */ 238 | 58B511ED1A9E6C8500147676 /* Debug */ = { 239 | isa = XCBuildConfiguration; 240 | buildSettings = { 241 | ALWAYS_SEARCH_USER_PATHS = NO; 242 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 243 | CLANG_CXX_LIBRARY = "libc++"; 244 | CLANG_ENABLE_MODULES = YES; 245 | CLANG_ENABLE_OBJC_ARC = YES; 246 | CLANG_WARN_BOOL_CONVERSION = YES; 247 | CLANG_WARN_CONSTANT_CONVERSION = YES; 248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 249 | CLANG_WARN_EMPTY_BODY = YES; 250 | CLANG_WARN_ENUM_CONVERSION = YES; 251 | CLANG_WARN_INFINITE_RECURSION = YES; 252 | CLANG_WARN_INT_CONVERSION = YES; 253 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 254 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 255 | CLANG_WARN_UNREACHABLE_CODE = YES; 256 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 257 | COPY_PHASE_STRIP = NO; 258 | ENABLE_STRICT_OBJC_MSGSEND = YES; 259 | ENABLE_TESTABILITY = YES; 260 | GCC_C_LANGUAGE_STANDARD = gnu99; 261 | GCC_DYNAMIC_NO_PIC = NO; 262 | GCC_NO_COMMON_BLOCKS = YES; 263 | GCC_OPTIMIZATION_LEVEL = 0; 264 | GCC_PREPROCESSOR_DEFINITIONS = ( 265 | "DEBUG=1", 266 | "$(inherited)", 267 | ); 268 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 271 | GCC_WARN_UNDECLARED_SELECTOR = YES; 272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 273 | GCC_WARN_UNUSED_FUNCTION = YES; 274 | GCC_WARN_UNUSED_VARIABLE = YES; 275 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 276 | MTL_ENABLE_DEBUG_INFO = YES; 277 | ONLY_ACTIVE_ARCH = YES; 278 | SDKROOT = iphoneos; 279 | }; 280 | name = Debug; 281 | }; 282 | 58B511EE1A9E6C8500147676 /* Release */ = { 283 | isa = XCBuildConfiguration; 284 | buildSettings = { 285 | ALWAYS_SEARCH_USER_PATHS = NO; 286 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 287 | CLANG_CXX_LIBRARY = "libc++"; 288 | CLANG_ENABLE_MODULES = YES; 289 | CLANG_ENABLE_OBJC_ARC = YES; 290 | CLANG_WARN_BOOL_CONVERSION = YES; 291 | CLANG_WARN_CONSTANT_CONVERSION = YES; 292 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 293 | CLANG_WARN_EMPTY_BODY = YES; 294 | CLANG_WARN_ENUM_CONVERSION = YES; 295 | CLANG_WARN_INFINITE_RECURSION = YES; 296 | CLANG_WARN_INT_CONVERSION = YES; 297 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 298 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 299 | CLANG_WARN_UNREACHABLE_CODE = YES; 300 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 301 | COPY_PHASE_STRIP = YES; 302 | ENABLE_NS_ASSERTIONS = NO; 303 | ENABLE_STRICT_OBJC_MSGSEND = YES; 304 | GCC_C_LANGUAGE_STANDARD = gnu99; 305 | GCC_NO_COMMON_BLOCKS = YES; 306 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 307 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 308 | GCC_WARN_UNDECLARED_SELECTOR = YES; 309 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 310 | GCC_WARN_UNUSED_FUNCTION = YES; 311 | GCC_WARN_UNUSED_VARIABLE = YES; 312 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 313 | MTL_ENABLE_DEBUG_INFO = NO; 314 | SDKROOT = iphoneos; 315 | VALIDATE_PRODUCT = YES; 316 | }; 317 | name = Release; 318 | }; 319 | 58B511F01A9E6C8500147676 /* Debug */ = { 320 | isa = XCBuildConfiguration; 321 | baseConfigurationReference = ADE2CFD48E9D5279BA5E0219 /* Pods-RNIconic.debug.xcconfig */; 322 | buildSettings = { 323 | HEADER_SEARCH_PATHS = ( 324 | "$(inherited)", 325 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 326 | "$(SRCROOT)/../../../React/**", 327 | "$(SRCROOT)/../../react-native/React/**", 328 | ); 329 | LIBRARY_SEARCH_PATHS = "$(inherited)"; 330 | OTHER_LDFLAGS = "-ObjC"; 331 | PRODUCT_NAME = RNIconic; 332 | SKIP_INSTALL = YES; 333 | }; 334 | name = Debug; 335 | }; 336 | 58B511F11A9E6C8500147676 /* Release */ = { 337 | isa = XCBuildConfiguration; 338 | baseConfigurationReference = 42E078141B71A52052D379A7 /* Pods-RNIconic.release.xcconfig */; 339 | buildSettings = { 340 | HEADER_SEARCH_PATHS = ( 341 | "$(inherited)", 342 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 343 | "$(SRCROOT)/../../../React/**", 344 | "$(SRCROOT)/../../react-native/React/**", 345 | ); 346 | LIBRARY_SEARCH_PATHS = "$(inherited)"; 347 | OTHER_LDFLAGS = "-ObjC"; 348 | PRODUCT_NAME = RNIconic; 349 | SKIP_INSTALL = YES; 350 | }; 351 | name = Release; 352 | }; 353 | /* End XCBuildConfiguration section */ 354 | 355 | /* Begin XCConfigurationList section */ 356 | 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNIconic" */ = { 357 | isa = XCConfigurationList; 358 | buildConfigurations = ( 359 | 58B511ED1A9E6C8500147676 /* Debug */, 360 | 58B511EE1A9E6C8500147676 /* Release */, 361 | ); 362 | defaultConfigurationIsVisible = 0; 363 | defaultConfigurationName = Release; 364 | }; 365 | 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNIconic" */ = { 366 | isa = XCConfigurationList; 367 | buildConfigurations = ( 368 | 58B511F01A9E6C8500147676 /* Debug */, 369 | 58B511F11A9E6C8500147676 /* Release */, 370 | ); 371 | defaultConfigurationIsVisible = 0; 372 | defaultConfigurationName = Release; 373 | }; 374 | /* End XCConfigurationList section */ 375 | }; 376 | rootObject = 58B511D31A9E6C8500147676 /* Project object */; 377 | } 378 | -------------------------------------------------------------------------------- /ios/RNIconic.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-iconic", 3 | "version": "0.0.9", 4 | "description": "React Native - Animated Icons with different states", 5 | "main": "RNIconic.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1", 8 | "postinstall": "node scripts/installer.js" 9 | }, 10 | "keywords": [ 11 | "react-native" 12 | ], 13 | "repository": { 14 | "type": "git", 15 | "url": "https://github.com/prscX/react-native-iconic.git" 16 | }, 17 | "author": "Pranav Raj Singh Chauhan", 18 | "license": "Apache License" 19 | } -------------------------------------------------------------------------------- /scripts/installer.js: -------------------------------------------------------------------------------- 1 | const exec = require('child_process').exec 2 | 3 | var osvar = process.platform 4 | 5 | if (osvar !== 'darwin') return 6 | 7 | exists('pod') 8 | .then(function(command) { 9 | installPods() 10 | }) 11 | .catch(function() { 12 | installCocoaPods().then(() => { 13 | installPods() 14 | }) 15 | }) 16 | 17 | function installPods() { 18 | console.log('executing pod install command') 19 | 20 | exec('cd ./ios && pod install', (err, stdout, stderr) => { 21 | console.log(stderr) 22 | 23 | if (err === undefined || err === null) { 24 | console.log('pod install command successfull') 25 | return 26 | } 27 | 28 | if (stdout !== undefined && stdout !== null) { 29 | if (stdout.includes('could not find compatible versions for pod')) { 30 | console.log('executing pod repo update command.') 31 | 32 | exec('pod repo update', (err, stdout, stderr) => { 33 | if (err === undefined || err === null) { 34 | console.log('pod repo update successfull') 35 | 36 | exec('cd ./ios && pod install', (err, stdout, stderr) => {}) 37 | 38 | return 39 | } 40 | 41 | console.log(stdout) 42 | }) 43 | } 44 | } else { 45 | console.log('pod install sucessfull') 46 | } 47 | }) 48 | } 49 | 50 | function installCocoaPods() { 51 | console.log('installing socoapods.') 52 | 53 | return new Promise((resolve, reject) => { 54 | run('sudo gem install cocoapods') 55 | .then(() => { 56 | console.log('sudo gem install cocoapods sucessfull') 57 | resolve() 58 | }) 59 | .catch(e => { 60 | console.log(e) 61 | }) 62 | }) 63 | } 64 | 65 | // returns Promise which fulfills with true if command exists 66 | function exists(cmd) { 67 | return run(`which ${cmd}`).then(stdout => { 68 | if (stdout.trim().length === 0) { 69 | // maybe an empty command was supplied? 70 | // are we running on Windows?? 71 | return Promise.reject(new Error('No output')) 72 | } 73 | 74 | const rNotFound = /^[\w\-]+ not found/g 75 | 76 | if (rNotFound.test(cmd)) { 77 | return Promise.resolve(false) 78 | } 79 | 80 | return Promise.resolve(true) 81 | }) 82 | } 83 | 84 | function run(command) { 85 | return new Promise((fulfill, reject) => { 86 | exec(command, (err, stdout, stderr) => { 87 | if (err) { 88 | reject(err) 89 | return 90 | } 91 | 92 | if (stderr) { 93 | reject(new Error(stderr)) 94 | return 95 | } 96 | 97 | fulfill(stdout) 98 | }) 99 | }) 100 | } 101 | --------------------------------------------------------------------------------