├── .DS_Store ├── .gitignore ├── .npmignore ├── README.md ├── android ├── .DS_Store ├── .classpath ├── .idea │ ├── gradle.xml │ ├── libraries │ │ ├── com_android_support_appcompat_v7_23_0_1.xml │ │ ├── com_android_support_recyclerview_v7_23_0_1.xml │ │ ├── com_android_support_support_annotations_23_0_1_jar.xml │ │ ├── com_android_support_support_v4_23_0_1.xml │ │ ├── com_facebook_fresco_drawee_0_8_1.xml │ │ ├── com_facebook_fresco_fbcore_0_8_1.xml │ │ ├── com_facebook_fresco_fresco_0_8_1.xml │ │ ├── com_facebook_fresco_imagepipeline_0_8_1.xml │ │ ├── com_facebook_fresco_imagepipeline_okhttp_0_8_1.xml │ │ ├── com_facebook_react_react_native_0_20_1.xml │ │ ├── com_facebook_stetho_stetho_1_2_0_jar.xml │ │ ├── com_facebook_stetho_stetho_okhttp_1_2_0_jar.xml │ │ ├── com_fasterxml_jackson_core_jackson_core_2_2_3_jar.xml │ │ ├── com_google_code_findbugs_jsr305_3_0_0_jar.xml │ │ ├── com_nineoldandroids_library_2_4_0_jar.xml │ │ ├── com_parse_bolts_bolts_android_1_1_4_jar.xml │ │ ├── com_squareup_okhttp_okhttp_2_5_0_jar.xml │ │ ├── com_squareup_okhttp_okhttp_ws_2_5_0_jar.xml │ │ ├── com_squareup_okio_okio_1_6_0_jar.xml │ │ ├── commons_cli_commons_cli_1_2_jar.xml │ │ └── org_webkit_android_jsc_r174650.xml │ ├── misc.xml │ ├── modules.xml │ ├── runConfigurations.xml │ └── workspace.xml ├── .project ├── .settings │ └── org.eclipse.buildship.core.prefs ├── build.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── src │ ├── .DS_Store │ └── main │ ├── .DS_Store │ ├── AndroidManifest.xml │ └── java │ ├── .DS_Store │ └── org │ ├── .DS_Store │ └── pentarex │ ├── .DS_Store │ └── rngallerymanager │ ├── GalleryCursorManager.java │ ├── RNGalleryManagerModule.java │ └── RNGalleryManagerPackage.java ├── example ├── .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 │ │ │ │ └── example │ │ │ │ ├── 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 │ ├── example-tvOS │ │ └── Info.plist │ ├── example-tvOSTests │ │ └── Info.plist │ ├── example.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── example-tvOS.xcscheme │ │ │ └── example.xcscheme │ ├── example │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Base.lproj │ │ │ └── LaunchScreen.xib │ │ ├── Images.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ │ └── Contents.json │ │ ├── Info.plist │ │ └── main.m │ └── exampleTests │ │ ├── Info.plist │ │ └── exampleTests.m ├── package-lock.json ├── package.json └── yarn.lock ├── index.js ├── ios ├── .DS_Store ├── RNGalleryManager.h ├── RNGalleryManager.m ├── RNGalleryManager.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcuserdata │ │ │ └── pentarex.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ └── xcuserdata │ │ └── pentarex.xcuserdatad │ │ └── xcschemes │ │ └── xcschememanagement.plist ├── RNImageLoader.h └── RNImageLoader.m ├── package-lock.json ├── package.json └── react-native-gallery-manager.podspec /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pentarex/react-native-gallery-manager/d09fcf2cf63fbbcbac76f9b287d5652200ff203a/.DS_Store -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # Files for the ART/Dalvik VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # Generated files 12 | bin/ 13 | gen/ 14 | out/ 15 | 16 | # Gradle files 17 | .gradle/ 18 | build/ 19 | 20 | # Local configuration file (sdk path, etc) 21 | local.properties 22 | 23 | # Proguard folder generated by Eclipse 24 | proguard/ 25 | 26 | # Log Files 27 | *.log 28 | 29 | # Android Studio Navigation editor temp files 30 | .navigation/ 31 | 32 | # Android Studio captures folder 33 | captures/ 34 | 35 | # IntelliJ 36 | *.iml 37 | .idea/workspace.xml 38 | .idea/tasks.xml 39 | .idea/gradle.xml 40 | .idea/dictionaries 41 | .idea/libraries 42 | 43 | # Keystore files 44 | # Uncomment the following line if you do not want to check your keystore files in. 45 | #*.jks 46 | 47 | # External native build folder generated in Android Studio 2.2 and later 48 | .externalNativeBuild 49 | 50 | # Google Services (e.g. APIs or Firebase) 51 | google-services.json 52 | 53 | # Freeline 54 | freeline.py 55 | freeline/ 56 | freeline_project_description.json 57 | 58 | # fastlane 59 | fastlane/report.xml 60 | fastlane/Preview.html 61 | fastlane/screenshots 62 | fastlane/test_output 63 | fastlane/readme.md 64 | 65 | /src/ 66 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | /example 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Gallery Manager 2 | 3 | #### Gallery manager for iOS and Android 4 | 5 | 6 | ## Installation 7 | 8 | ```bash 9 | npm install --save react-native-gallery-manager 10 | ``` 11 | 12 | or 13 | 14 | ```bash 15 | yarn add react-native-gallery-manager 16 | ``` 17 | 18 | and then 19 | 20 | ```bash 21 | react-native link 22 | ``` 23 | 24 | NOTE: If you are using CameraRoll from react-native, you have to unlink it before using this library 25 | 26 | 27 | ## Issues 28 | * If the image is not being shown in Android try the following 29 | * [increase fresco memory](https://medium.com/in-the-hudl/configure-fresco-in-react-native-28c2bc7dcc4d) 30 | * resizeMethod='resize' to the Image component 31 | * removeClippedSubviews={true} to ScrollView (FlatList, SectionList) 32 | * android:largeHeap="true" to the android manifest.xml in the application section (I dont recommend that but, you got to do, what you got to do....) 33 | 34 | [#10569](https://github.com/facebook/react-native/issues/10569) 35 | [#13600](https://github.com/facebook/react-native/issues/13600) 36 | [#10470](https://github.com/facebook/react-native/issues/10470) 37 | 38 | 39 | 40 | ## Usage 41 | 42 | ```javascript 43 | import GalleryManager from 'react-native-gallery-manager'; 44 | ``` 45 | 46 | ## Methods and Responses 47 | 48 | ### Get Assets 49 | ```javascript 50 | GalleryManager.getAssets({ 51 | type: 'all', 52 | startFrom: 0, 53 | }).then((response) => { 54 | 55 | }).catch((err) => { 56 | // no rejects are defined currently on iOS 57 | }) 58 | ``` 59 | 60 | | Props | Type | Default | Notes | 61 | | ------------- |:-------------: | :------:|:-----| 62 | | type | String | 'all'|Type of the asset returned, can be 'image', 'video', 'all' | 63 | | limit | Number | 10|how many asset to return in one call | 64 | | startFrom | Number | 0|From which index to start | 65 | | albumName | String | | Set the name of the album from which you want assets (Optional) | 66 | 67 | ##### Response 68 | 69 | ```javascript 70 | { 71 | assets:[ 72 | { 73 | type:'image', 74 | uri:'file:///storage/emulated/0/Download/ylo6z7D.jpg', 75 | id:38, 76 | filename:'ylo6z7D.jpg', 77 | width:3456, 78 | height:1944, 79 | creationDate:'1517064428', 80 | duration:0, 81 | mimeType:'image/jpeg' 82 | }, 83 | ... 84 | ], 85 | totalAssets:7, 86 | next:7, 87 | hasMore:false 88 | } 89 | ``` 90 | 91 | ### Get Albums 92 | ```javascript 93 | GalleryManager.getAlbums().then((response) => { 94 | 95 | }).catch((err) => { 96 | // no rejects are defined currently on iOS 97 | }) 98 | ``` 99 | 100 | ##### Response 101 | 102 | ```javascript 103 | { 104 | albums: 105 | [ 106 | { 107 | assetCount: 616, title: 'WhatsApp' 108 | }, 109 | { 110 | assetCount: 6, title: 'Instagram' 111 | }, 112 | { 113 | assetCount: 1, title: 'Twitter' 114 | }, 115 | ... 116 | ], 117 | totalAlbums: 24 118 | } 119 | ``` 120 | 121 | ### Check Permission 122 | ```javascript 123 | GalleryManager.requestAuthorization(title, message).then((response) => { 124 | // response.isAuthorized = true || false 125 | }).catch((err) => { 126 | 127 | }) 128 | ``` 129 | | Props | Type | Default | Notes | 130 | | ------------- |:-------------: | :------:|:-----| 131 | | title | String | | (Android) title of the dialog | 132 | | message | String | | (Android) message in the dialog | 133 | 134 | #### Convert Video (iOS only) 135 | ```javascript 136 | GalleryManager.convertVideo({ 137 | id: '98F14DF6-3BF9-4D1B-A6E0-0A36A25AE377/L0/001', 138 | convertTo: 'm4v', 139 | quality: 'low' 140 | }).then((response) => { 141 | console.log(response); 142 | }).catch((err) => { 143 | console.log(err) 144 | }); 145 | ``` 146 | 147 | | Props | Type | Default | Notes | 148 | | ------------- |:-------------: | :------:|:-----| 149 | | id | String | | The id of the video asset | 150 | | convertTo | String | |Can be mpeg4, m4v or mov | 151 | | quality | String | original |Can be original, high, medium, low | 152 | 153 | ##### Response 154 | ```javascript 155 | { 156 | mimeType: 'video/x-m4v', 157 | path: 'file:///Users/pentarex/Library/Developer/CoreSimulator/Devices/81873DB4-A220-4F60-88B8-87521BB231E6/data/Containers/Data/Application/91EE6566-4D04-4E33-9608-EDB06DA6C6D2/Documents/8DAEDFBC-9E16-442D-A98F-E145F429DA0B.m4v', 158 | filename: '8DAEDFBC-9E16-442D-A98F-E145F429DA0B.m4v', 159 | type: 'video', 160 | duration: 19.185833333333335 161 | } 162 | ``` 163 | The reason the library is returning the path of the file in this format is that the video can be send later to server with fetch library. If the url starts with assets-library:// not with file:// react-native will not send it. 164 | 165 | 166 | 167 | ### Roadmap 168 | 169 | 170 | ### Suggestions and forks are welcome 171 | 172 | 173 | 174 | 175 | -------------------------------------------------------------------------------- /android/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pentarex/react-native-gallery-manager/d09fcf2cf63fbbcbac76f9b287d5652200ff203a/android/.DS_Store -------------------------------------------------------------------------------- /android/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /android/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16 | 17 | -------------------------------------------------------------------------------- /android/.idea/libraries/com_android_support_appcompat_v7_23_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /android/.idea/libraries/com_android_support_recyclerview_v7_23_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /android/.idea/libraries/com_android_support_support_annotations_23_0_1_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /android/.idea/libraries/com_android_support_support_v4_23_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /android/.idea/libraries/com_facebook_fresco_drawee_0_8_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /android/.idea/libraries/com_facebook_fresco_fbcore_0_8_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /android/.idea/libraries/com_facebook_fresco_fresco_0_8_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /android/.idea/libraries/com_facebook_fresco_imagepipeline_0_8_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /android/.idea/libraries/com_facebook_fresco_imagepipeline_okhttp_0_8_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /android/.idea/libraries/com_facebook_react_react_native_0_20_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /android/.idea/libraries/com_facebook_stetho_stetho_1_2_0_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /android/.idea/libraries/com_facebook_stetho_stetho_okhttp_1_2_0_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /android/.idea/libraries/com_fasterxml_jackson_core_jackson_core_2_2_3_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /android/.idea/libraries/com_google_code_findbugs_jsr305_3_0_0_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /android/.idea/libraries/com_nineoldandroids_library_2_4_0_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /android/.idea/libraries/com_parse_bolts_bolts_android_1_1_4_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /android/.idea/libraries/com_squareup_okhttp_okhttp_2_5_0_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /android/.idea/libraries/com_squareup_okhttp_okhttp_ws_2_5_0_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /android/.idea/libraries/com_squareup_okio_okio_1_6_0_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /android/.idea/libraries/commons_cli_commons_cli_1_2_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /android/.idea/libraries/org_webkit_android_jsc_r174650.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /android/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16 | 26 | 27 | 28 | 29 | 30 | 31 | 33 | -------------------------------------------------------------------------------- /android/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /android/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | android 4 | Project react-native-gallery-manager 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 | auto.sync=false 2 | build.scans.enabled=false 3 | connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER) 4 | connection.project.dir= 5 | eclipse.preferences.version=1 6 | gradle.user.home= 7 | offline.mode=false 8 | override.workspace.settings=true 9 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | 2 | buildscript { 3 | repositories { 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:2.2.3' 9 | } 10 | } 11 | 12 | apply plugin: 'com.android.library' 13 | 14 | android { 15 | compileSdkVersion 23 16 | buildToolsVersion "23.0.1" 17 | 18 | defaultConfig { 19 | minSdkVersion 16 20 | targetSdkVersion 22 21 | versionCode 1 22 | versionName "1.0" 23 | } 24 | lintOptions { 25 | abortOnError false 26 | } 27 | } 28 | 29 | repositories { 30 | mavenCentral() 31 | } 32 | 33 | dependencies { 34 | compile 'com.facebook.react:react-native:+' 35 | } 36 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pentarex/react-native-gallery-manager/d09fcf2cf63fbbcbac76f9b287d5652200ff203a/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sat Jan 27 14:59:34 CET 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-2.14.1-all.zip 7 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # 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/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pentarex/react-native-gallery-manager/d09fcf2cf63fbbcbac76f9b287d5652200ff203a/android/src/.DS_Store -------------------------------------------------------------------------------- /android/src/main/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pentarex/react-native-gallery-manager/d09fcf2cf63fbbcbac76f9b287d5652200ff203a/android/src/main/.DS_Store -------------------------------------------------------------------------------- /android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /android/src/main/java/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pentarex/react-native-gallery-manager/d09fcf2cf63fbbcbac76f9b287d5652200ff203a/android/src/main/java/.DS_Store -------------------------------------------------------------------------------- /android/src/main/java/org/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pentarex/react-native-gallery-manager/d09fcf2cf63fbbcbac76f9b287d5652200ff203a/android/src/main/java/org/.DS_Store -------------------------------------------------------------------------------- /android/src/main/java/org/pentarex/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pentarex/react-native-gallery-manager/d09fcf2cf63fbbcbac76f9b287d5652200ff203a/android/src/main/java/org/pentarex/.DS_Store -------------------------------------------------------------------------------- /android/src/main/java/org/pentarex/rngallerymanager/GalleryCursorManager.java: -------------------------------------------------------------------------------- 1 | package org.pentarex.rngallerymanager; 2 | 3 | import android.content.ContentResolver; 4 | import android.database.Cursor; 5 | import android.net.Uri; 6 | import android.provider.MediaStore; 7 | 8 | import com.facebook.react.bridge.ReactApplicationContext; 9 | import com.facebook.react.bridge.ReadableMap; 10 | 11 | /** 12 | * Created by pentarex on 26.01.18. 13 | */ 14 | 15 | public class GalleryCursorManager { 16 | 17 | public static Cursor getAssetCursor(String requestedType, String albumName, ReactApplicationContext reactContext) { 18 | String[] projection = new String[]{ 19 | MediaStore.Images.Media.DATE_ADDED, 20 | MediaStore.Images.Media.MIME_TYPE, 21 | MediaStore.Images.Media.DATA, 22 | MediaStore.Images.Media.DISPLAY_NAME, 23 | MediaStore.Video.Media.DURATION, 24 | MediaStore.Images.Media._ID, 25 | MediaStore.Images.Media.WIDTH, 26 | MediaStore.Images.Media.HEIGHT, 27 | MediaStore.Images.Media.TITLE, 28 | MediaStore.Files.FileColumns.MEDIA_TYPE, 29 | MediaStore.Images.Media.BUCKET_DISPLAY_NAME 30 | }; 31 | 32 | 33 | String selection; 34 | switch (requestedType.toLowerCase()){ 35 | case "image": { 36 | selection = MediaStore.Files.FileColumns.MEDIA_TYPE + "=" + MediaStore.Files.FileColumns.MEDIA_TYPE_IMAGE; 37 | break; 38 | } 39 | case "video": { 40 | selection = MediaStore.Files.FileColumns.MEDIA_TYPE + "=" + MediaStore.Files.FileColumns.MEDIA_TYPE_VIDEO; 41 | break; 42 | } 43 | default: { 44 | selection = MediaStore.Files.FileColumns.MEDIA_TYPE + "=" + MediaStore.Files.FileColumns.MEDIA_TYPE_IMAGE 45 | + " OR " 46 | + MediaStore.Files.FileColumns.MEDIA_TYPE + "=" + MediaStore.Files.FileColumns.MEDIA_TYPE_VIDEO; 47 | break; 48 | } 49 | } 50 | 51 | String[] selectionArgs = null; 52 | if (albumName != null) { 53 | selection += ") AND (" + MediaStore.Images.Media.BUCKET_DISPLAY_NAME + "= ?"; 54 | selectionArgs = new String[] { albumName }; 55 | } 56 | 57 | String sortByAndLimit = MediaStore.Files.FileColumns.DATE_ADDED + " DESC "; 58 | 59 | ContentResolver contentResolver = reactContext.getContentResolver(); 60 | Uri queryUri = MediaStore.Files.getContentUri("external"); 61 | 62 | return contentResolver.query(queryUri, projection, selection, selectionArgs, sortByAndLimit); 63 | } 64 | 65 | public static Cursor getAlbumCursor(ReactApplicationContext reactContext) { 66 | String[] projection = new String[] { 67 | MediaStore.Images.ImageColumns.BUCKET_DISPLAY_NAME, 68 | MediaStore.Images.ImageColumns.BUCKET_ID, 69 | MediaStore.Images.ImageColumns.DATE_MODIFIED, 70 | MediaStore.Images.ImageColumns.DATA, 71 | MediaStore.Video.VideoColumns.BUCKET_DISPLAY_NAME, 72 | MediaStore.Video.VideoColumns.BUCKET_ID, 73 | MediaStore.Video.VideoColumns.DATE_MODIFIED, 74 | MediaStore.Video.VideoColumns.DATA, 75 | "count(_data) as assetCount" 76 | }; 77 | 78 | ContentResolver contentResolver = reactContext.getContentResolver(); 79 | Uri queryUri = MediaStore.Files.getContentUri("external"); 80 | String BUCKET_GROUP_BY = MediaStore.Files.FileColumns.MEDIA_TYPE + "=" + MediaStore.Files.FileColumns.MEDIA_TYPE_IMAGE 81 | + " OR " 82 | + MediaStore.Files.FileColumns.MEDIA_TYPE + "=" + MediaStore.Files.FileColumns.MEDIA_TYPE_VIDEO 83 | + " and 1) GROUP BY 1,(2"; 84 | 85 | 86 | return contentResolver.query(queryUri, projection, BUCKET_GROUP_BY, null, null); 87 | 88 | } 89 | } 90 | -------------------------------------------------------------------------------- /android/src/main/java/org/pentarex/rngallerymanager/RNGalleryManagerModule.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by pentarex on 26.01.18. 3 | */ 4 | 5 | package org.pentarex.rngallerymanager; 6 | 7 | import android.database.Cursor; 8 | import android.os.Build; 9 | import android.provider.MediaStore; 10 | 11 | import com.facebook.react.bridge.Promise; 12 | import com.facebook.react.bridge.ReactApplicationContext; 13 | import com.facebook.react.bridge.ReactContextBaseJavaModule; 14 | import com.facebook.react.bridge.ReactMethod; 15 | import com.facebook.react.bridge.ReadableMap; 16 | import com.facebook.react.bridge.WritableArray; 17 | import com.facebook.react.bridge.WritableMap; 18 | import com.facebook.react.bridge.WritableNativeArray; 19 | import com.facebook.react.bridge.WritableNativeMap; 20 | 21 | public class RNGalleryManagerModule extends ReactContextBaseJavaModule { 22 | 23 | public static final String RNGALLERY_MANAGER = "RNGalleryManager"; 24 | private static ReactApplicationContext reactContext = null; 25 | 26 | 27 | public RNGalleryManagerModule(ReactApplicationContext context) { 28 | super(context); 29 | reactContext = context; 30 | } 31 | 32 | @Override 33 | public String getName() { 34 | return RNGALLERY_MANAGER; 35 | } 36 | 37 | 38 | @ReactMethod 39 | public void getAssets(final ReadableMap params, final Promise promise) { 40 | if (isJellyBeanOrLater()) { 41 | promise.reject(new Exception("Version of Android must be > JellyBean")); 42 | return; 43 | } 44 | 45 | String requestedType = "all"; 46 | if (params.hasKey("type")) { 47 | requestedType = params.getString("type"); 48 | } 49 | 50 | Integer limit = 10; 51 | if (params.hasKey("limit")) { 52 | limit = params.getInt("limit"); 53 | } 54 | Integer startFrom = 0; 55 | if (params.hasKey("startFrom")) { 56 | startFrom = params.getInt("startFrom"); 57 | } 58 | String albumName = null; 59 | if (params.hasKey("albumName")) { 60 | albumName = params.getString("albumName"); 61 | } 62 | 63 | WritableMap response = new WritableNativeMap(); 64 | 65 | Cursor gallery = null; 66 | try { 67 | gallery = GalleryCursorManager.getAssetCursor(requestedType, albumName, reactContext); 68 | WritableArray assets = new WritableNativeArray(); 69 | 70 | if(gallery.getCount() <= startFrom ) { 71 | promise.reject("gallery index out of bound", ""); 72 | return; 73 | } else { 74 | response.putInt("totalAssets", gallery.getCount()); 75 | boolean hasMore = gallery.getCount() > startFrom + limit; 76 | response.putBoolean("hasMore", hasMore); 77 | if(hasMore) { 78 | response.putInt("next", startFrom + limit); 79 | } else { 80 | response.putInt("next", gallery.getCount()); 81 | } 82 | gallery.moveToPosition(startFrom); 83 | } 84 | 85 | do { 86 | WritableMap asset = getAsset(gallery); 87 | assets.pushMap(asset); 88 | if (gallery.getPosition() == (startFrom + limit) - 1) break; 89 | } while (gallery.moveToNext()); 90 | 91 | response.putArray("assets", assets); 92 | 93 | promise.resolve(response); 94 | 95 | } catch (SecurityException ex) { 96 | System.err.println(ex); 97 | } finally { 98 | if (gallery != null) gallery.close(); 99 | } 100 | } 101 | 102 | 103 | @ReactMethod 104 | public void getAlbums(final Promise promise) { 105 | if (isJellyBeanOrLater()) { 106 | promise.reject(new Exception("Version of Android must be > JellyBean")); 107 | return; 108 | } 109 | 110 | WritableMap response = new WritableNativeMap(); 111 | 112 | 113 | Cursor gallery = null; 114 | try { 115 | gallery = GalleryCursorManager.getAlbumCursor(reactContext); 116 | WritableArray albums = new WritableNativeArray(); 117 | response.putInt("totalAlbums", gallery.getCount()); 118 | gallery.moveToFirst(); 119 | do { 120 | WritableMap album = getAlbum(gallery); 121 | albums.pushMap(album); 122 | } while (gallery.moveToNext()); 123 | 124 | response.putArray("albums", albums); 125 | 126 | promise.resolve(response); 127 | 128 | } catch (SecurityException ex) { 129 | System.err.println(ex); 130 | } finally { 131 | if (gallery != null) gallery.close(); 132 | } 133 | 134 | } 135 | 136 | private WritableMap getAsset(Cursor gallery) { 137 | WritableMap asset = new WritableNativeMap(); 138 | int mediaType = gallery.getInt(gallery.getColumnIndex(MediaStore.Files.FileColumns.MEDIA_TYPE)); 139 | String mimeType = gallery.getString(gallery.getColumnIndex(MediaStore.Files.FileColumns.MIME_TYPE)); 140 | String creationDate = gallery.getString(gallery.getColumnIndex(MediaStore.Files.FileColumns.DATE_ADDED)); 141 | String fileName = gallery.getString(gallery.getColumnIndex(MediaStore.Files.FileColumns.DISPLAY_NAME)); 142 | Double height = gallery.getDouble(gallery.getColumnIndex(MediaStore.Files.FileColumns.HEIGHT)); 143 | Double width = gallery.getDouble(gallery.getColumnIndex(MediaStore.Files.FileColumns.WIDTH)); 144 | String uri = "file://" + gallery.getString(gallery.getColumnIndex(MediaStore.Files.FileColumns.DATA)); 145 | Double id = gallery.getDouble(gallery.getColumnIndex(MediaStore.Files.FileColumns._ID)); 146 | 147 | 148 | asset.putString("mimeType", mimeType); 149 | asset.putString("creationDate", creationDate); 150 | asset.putDouble("height", height); 151 | asset.putDouble("width", width); 152 | asset.putString("filename", fileName); 153 | asset.putDouble("id", id); 154 | asset.putString("uri", uri); 155 | 156 | if (mediaType == MediaStore.Files.FileColumns.MEDIA_TYPE_IMAGE) { 157 | asset.putDouble("duration", 0); 158 | asset.putString("type", "image"); 159 | 160 | } else if (mediaType == MediaStore.Files.FileColumns.MEDIA_TYPE_VIDEO) { 161 | Double duration = gallery.getDouble(gallery.getColumnIndex(MediaStore.Video.VideoColumns.DURATION)); 162 | asset.putDouble("duration", duration / 1000); 163 | asset.putString("type", "video"); 164 | } 165 | return asset; 166 | } 167 | 168 | private WritableMap getAlbum(Cursor gallery) { 169 | WritableMap album = new WritableNativeMap(); 170 | String albumName = gallery.getString(gallery.getColumnIndex(MediaStore.Images.ImageColumns.BUCKET_DISPLAY_NAME)); 171 | int assetCount = gallery.getInt(gallery.getColumnIndex("assetCount")); 172 | album.putString("title", albumName); 173 | album.putInt("assetCount", assetCount); 174 | return album; 175 | } 176 | 177 | 178 | private Boolean isJellyBeanOrLater() { 179 | return Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN; 180 | } 181 | } 182 | -------------------------------------------------------------------------------- /android/src/main/java/org/pentarex/rngallerymanager/RNGalleryManagerPackage.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by pentarex on 26.01.18. 3 | */ 4 | 5 | package org.pentarex.rngallerymanager; 6 | 7 | import com.facebook.react.ReactPackage; 8 | import com.facebook.react.bridge.JavaScriptModule; 9 | import com.facebook.react.bridge.NativeModule; 10 | import com.facebook.react.bridge.ReactApplicationContext; 11 | import com.facebook.react.uimanager.ViewManager; 12 | 13 | import java.util.ArrayList; 14 | import java.util.Arrays; 15 | import java.util.Collections; 16 | import java.util.List; 17 | 18 | public class RNGalleryManagerPackage implements ReactPackage { 19 | 20 | public RNGalleryManagerPackage() {} 21 | 22 | @Override 23 | public List createNativeModules(ReactApplicationContext reactContext) { 24 | List modules = new ArrayList<>(); 25 | modules.add(new RNGalleryManagerModule(reactContext)); 26 | return modules; 27 | } 28 | 29 | // Deprecated RN 0.47 30 | public List> createJSModules() { 31 | return Collections.emptyList(); 32 | } 33 | 34 | public List createViewManagers(ReactApplicationContext reactContext) { 35 | return Collections.emptyList(); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /example/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react-native"] 3 | } 4 | -------------------------------------------------------------------------------- /example/.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /example/.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 | -------------------------------------------------------------------------------- /example/.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /example/.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 | -------------------------------------------------------------------------------- /example/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /example/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 | NativeModules, 14 | Image, 15 | ScrollView 16 | } from 'react-native'; 17 | import GalleryManager from 'react-native-gallery-manager'; 18 | 19 | export default class App extends Component { 20 | 21 | constructor(props) { 22 | super(props) 23 | this.state = { 24 | assets: [] 25 | }; 26 | GalleryManager.requestAuthorization().then((result) => { 27 | GalleryManager.getAssets({ type: 'all', limit: 15, startFrom: 0 }).then((response) => { 28 | this.setState({ assets: response.assets }); 29 | console.log(response); 30 | response.assets.forEach(asset => { 31 | if (asset.type === 'video' && Platform.OS === 'ios') { 32 | this.convertVideo(asset); 33 | } 34 | }); 35 | }) 36 | }).catch((err) => { 37 | console.log(err); 38 | }); 39 | 40 | 41 | }; 42 | 43 | convertVideo(asset) { 44 | GalleryManager.convertVideo({ 45 | id: asset.id, 46 | compressType: "low", 47 | convertTo: 'mpeg4' 48 | }).then((response) => { 49 | console.log(response); 50 | }).catch((err) => { 51 | console.warn(err); 52 | }); 53 | } 54 | 55 | render() { 56 | return ( 57 | 58 | {this.state.assets.map((asset, index) => { 59 | return ( console.log(`${asset.uri} loaded`)}/>); 60 | })} 61 | 62 | 63 | ); 64 | } 65 | } 66 | 67 | const styles = StyleSheet.create({ 68 | scrollView: { 69 | flex: 1 70 | }, 71 | img: { 72 | height: 200, 73 | width: 200 74 | }, 75 | 76 | }); 77 | -------------------------------------------------------------------------------- /example/__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 | -------------------------------------------------------------------------------- /example/android/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | example 4 | Project example 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 | -------------------------------------------------------------------------------- /example/android/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | #Sun Mar 25 15:39:14 CEST 2018 2 | connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER) 3 | override.workspace.settings=true 4 | auto.sync=false 5 | gradle.user.home= 6 | connection.project.dir= 7 | build.scans.enabled=false 8 | offline.mode=false 9 | -------------------------------------------------------------------------------- /example/android/app/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /example/android/app/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | #Sun Mar 25 15:39:14 CEST 2018 2 | connection.project.dir=.. 3 | -------------------------------------------------------------------------------- /example/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.example", 49 | ) 50 | 51 | android_resource( 52 | name = "res", 53 | package = "com.example", 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 | -------------------------------------------------------------------------------- /example/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 23 98 | buildToolsVersion "23.0.1" 99 | 100 | defaultConfig { 101 | applicationId "com.example" 102 | minSdkVersion 16 103 | targetSdkVersion 22 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-gallery-manager') 141 | compile fileTree(dir: "libs", include: ["*.jar"]) 142 | compile "com.android.support:appcompat-v7:23.0.1" 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 | -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /example/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 13 | 14 | 21 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /example/android/app/src/main/java/com/example/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example; 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 "example"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /example/android/app/src/main/java/com/example/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import android.app.Application; 4 | 5 | import com.facebook.react.ReactApplication; 6 | 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 org.pentarex.rngallerymanager.RNGalleryManagerPackage; 13 | 14 | import java.util.Arrays; 15 | import java.util.List; 16 | 17 | public class MainApplication extends Application implements ReactApplication { 18 | 19 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 20 | @Override 21 | public boolean getUseDeveloperSupport() { 22 | return BuildConfig.DEBUG; 23 | } 24 | 25 | @Override 26 | protected List getPackages() { 27 | return Arrays.asList( 28 | new MainReactPackage(), 29 | new RNGalleryManagerPackage() 30 | ); 31 | } 32 | 33 | @Override 34 | protected String getJSMainModuleName() { 35 | return "index"; 36 | } 37 | }; 38 | 39 | @Override 40 | public ReactNativeHost getReactNativeHost() { 41 | return mReactNativeHost; 42 | } 43 | 44 | @Override 45 | public void onCreate() { 46 | super.onCreate(); 47 | SoLoader.init(this, /* native exopackage */ false); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pentarex/react-native-gallery-manager/d09fcf2cf63fbbcbac76f9b287d5652200ff203a/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pentarex/react-native-gallery-manager/d09fcf2cf63fbbcbac76f9b287d5652200ff203a/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pentarex/react-native-gallery-manager/d09fcf2cf63fbbcbac76f9b287d5652200ff203a/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pentarex/react-native-gallery-manager/d09fcf2cf63fbbcbac76f9b287d5652200ff203a/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | example 3 | 4 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:2.2.3' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | mavenLocal() 18 | jcenter() 19 | maven { 20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 21 | url "$rootDir/../node_modules/react-native/android" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pentarex/react-native-gallery-manager/d09fcf2cf63fbbcbac76f9b287d5652200ff203a/example/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip 6 | -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /example/android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = "debug", 3 | properties = "debug.keystore.properties", 4 | store = "debug.keystore", 5 | visibility = [ 6 | "PUBLIC", 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /example/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 | -------------------------------------------------------------------------------- /example/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'example' 2 | include ':react-native-gallery-manager' 3 | project(':react-native-gallery-manager').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gallery-manager/android') 4 | 5 | include ':app' 6 | -------------------------------------------------------------------------------- /example/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example", 3 | "displayName": "example" 4 | } -------------------------------------------------------------------------------- /example/index.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from 'react-native'; 2 | import App from './App'; 3 | 4 | AppRegistry.registerComponent('example', () => App); 5 | -------------------------------------------------------------------------------- /example/ios/example-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 | -------------------------------------------------------------------------------- /example/ios/example-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 | -------------------------------------------------------------------------------- /example/ios/example.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 | 00E356F31AD99517003FC87E /* exampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* exampleTests.m */; }; 16 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 17 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 18 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 19 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 20 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 21 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 22 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 23 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 24 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 25 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 26 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 27 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 28 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 29 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; }; 30 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; }; 31 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; }; 32 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; }; 33 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; }; 34 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; }; 35 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D16E6891FA4F8E400B85C8A /* libReact.a */; }; 36 | 2DCD954D1E0B4F2C00145EB5 /* exampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* exampleTests.m */; }; 37 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 38 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 39 | 98482D1DE303414E96710AFD /* libRNGalleryManager.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7F2EBA037E60468F8238A014 /* libRNGalleryManager.a */; }; 40 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; }; 41 | /* End PBXBuildFile section */ 42 | 43 | /* Begin PBXContainerItemProxy section */ 44 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 45 | isa = PBXContainerItemProxy; 46 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 47 | proxyType = 2; 48 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 49 | remoteInfo = RCTActionSheet; 50 | }; 51 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 52 | isa = PBXContainerItemProxy; 53 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 54 | proxyType = 2; 55 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 56 | remoteInfo = RCTGeolocation; 57 | }; 58 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 59 | isa = PBXContainerItemProxy; 60 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 61 | proxyType = 2; 62 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 63 | remoteInfo = RCTImage; 64 | }; 65 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 66 | isa = PBXContainerItemProxy; 67 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 68 | proxyType = 2; 69 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 70 | remoteInfo = RCTNetwork; 71 | }; 72 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 73 | isa = PBXContainerItemProxy; 74 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 75 | proxyType = 2; 76 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 77 | remoteInfo = RCTVibration; 78 | }; 79 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 80 | isa = PBXContainerItemProxy; 81 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 82 | proxyType = 1; 83 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 84 | remoteInfo = example; 85 | }; 86 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 87 | isa = PBXContainerItemProxy; 88 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 89 | proxyType = 2; 90 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 91 | remoteInfo = RCTSettings; 92 | }; 93 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 94 | isa = PBXContainerItemProxy; 95 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 96 | proxyType = 2; 97 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 98 | remoteInfo = RCTWebSocket; 99 | }; 100 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 101 | isa = PBXContainerItemProxy; 102 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 103 | proxyType = 2; 104 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 105 | remoteInfo = React; 106 | }; 107 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 108 | isa = PBXContainerItemProxy; 109 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 110 | proxyType = 1; 111 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 112 | remoteInfo = "example-tvOS"; 113 | }; 114 | 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 115 | isa = PBXContainerItemProxy; 116 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 117 | proxyType = 2; 118 | remoteGlobalIDString = ADD01A681E09402E00F6D226; 119 | remoteInfo = "RCTBlob-tvOS"; 120 | }; 121 | 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 122 | isa = PBXContainerItemProxy; 123 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 124 | proxyType = 2; 125 | remoteGlobalIDString = 3DBE0D001F3B181A0099AA32; 126 | remoteInfo = fishhook; 127 | }; 128 | 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 129 | isa = PBXContainerItemProxy; 130 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 131 | proxyType = 2; 132 | remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32; 133 | remoteInfo = "fishhook-tvOS"; 134 | }; 135 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 136 | isa = PBXContainerItemProxy; 137 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 138 | proxyType = 2; 139 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 140 | remoteInfo = "RCTImage-tvOS"; 141 | }; 142 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 143 | isa = PBXContainerItemProxy; 144 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 145 | proxyType = 2; 146 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 147 | remoteInfo = "RCTLinking-tvOS"; 148 | }; 149 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 150 | isa = PBXContainerItemProxy; 151 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 152 | proxyType = 2; 153 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 154 | remoteInfo = "RCTNetwork-tvOS"; 155 | }; 156 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 157 | isa = PBXContainerItemProxy; 158 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 159 | proxyType = 2; 160 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 161 | remoteInfo = "RCTSettings-tvOS"; 162 | }; 163 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 164 | isa = PBXContainerItemProxy; 165 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 166 | proxyType = 2; 167 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 168 | remoteInfo = "RCTText-tvOS"; 169 | }; 170 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 171 | isa = PBXContainerItemProxy; 172 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 173 | proxyType = 2; 174 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 175 | remoteInfo = "RCTWebSocket-tvOS"; 176 | }; 177 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 178 | isa = PBXContainerItemProxy; 179 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 180 | proxyType = 2; 181 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 182 | remoteInfo = "React-tvOS"; 183 | }; 184 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 185 | isa = PBXContainerItemProxy; 186 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 187 | proxyType = 2; 188 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 189 | remoteInfo = yoga; 190 | }; 191 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 192 | isa = PBXContainerItemProxy; 193 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 194 | proxyType = 2; 195 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 196 | remoteInfo = "yoga-tvOS"; 197 | }; 198 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 199 | isa = PBXContainerItemProxy; 200 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 201 | proxyType = 2; 202 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 203 | remoteInfo = cxxreact; 204 | }; 205 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 206 | isa = PBXContainerItemProxy; 207 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 208 | proxyType = 2; 209 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 210 | remoteInfo = "cxxreact-tvOS"; 211 | }; 212 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 213 | isa = PBXContainerItemProxy; 214 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 215 | proxyType = 2; 216 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4; 217 | remoteInfo = jschelpers; 218 | }; 219 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 220 | isa = PBXContainerItemProxy; 221 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 222 | proxyType = 2; 223 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; 224 | remoteInfo = "jschelpers-tvOS"; 225 | }; 226 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 227 | isa = PBXContainerItemProxy; 228 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 229 | proxyType = 2; 230 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 231 | remoteInfo = RCTAnimation; 232 | }; 233 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 234 | isa = PBXContainerItemProxy; 235 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 236 | proxyType = 2; 237 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 238 | remoteInfo = "RCTAnimation-tvOS"; 239 | }; 240 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 241 | isa = PBXContainerItemProxy; 242 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 243 | proxyType = 2; 244 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 245 | remoteInfo = RCTLinking; 246 | }; 247 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 248 | isa = PBXContainerItemProxy; 249 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 250 | proxyType = 2; 251 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 252 | remoteInfo = RCTText; 253 | }; 254 | A903A1A1201CCA9000AB9AE9 /* PBXContainerItemProxy */ = { 255 | isa = PBXContainerItemProxy; 256 | containerPortal = F83185355F784DC99237810C /* RNGalleryManager.xcodeproj */; 257 | proxyType = 2; 258 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 259 | remoteInfo = RNGalleryManager; 260 | }; 261 | A9C119AB2014896800EAF9BD /* PBXContainerItemProxy */ = { 262 | isa = PBXContainerItemProxy; 263 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 264 | proxyType = 2; 265 | remoteGlobalIDString = EBF21BDC1FC498900052F4D5; 266 | remoteInfo = jsinspector; 267 | }; 268 | A9C119AD2014896800EAF9BD /* PBXContainerItemProxy */ = { 269 | isa = PBXContainerItemProxy; 270 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 271 | proxyType = 2; 272 | remoteGlobalIDString = EBF21BFA1FC4989A0052F4D5; 273 | remoteInfo = "jsinspector-tvOS"; 274 | }; 275 | A9C119AF2014896800EAF9BD /* PBXContainerItemProxy */ = { 276 | isa = PBXContainerItemProxy; 277 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 278 | proxyType = 2; 279 | remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7; 280 | remoteInfo = "third-party"; 281 | }; 282 | A9C119B12014896800EAF9BD /* PBXContainerItemProxy */ = { 283 | isa = PBXContainerItemProxy; 284 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 285 | proxyType = 2; 286 | remoteGlobalIDString = 3D383D3C1EBD27B6005632C8; 287 | remoteInfo = "third-party-tvOS"; 288 | }; 289 | A9C119B32014896800EAF9BD /* PBXContainerItemProxy */ = { 290 | isa = PBXContainerItemProxy; 291 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 292 | proxyType = 2; 293 | remoteGlobalIDString = 139D7E881E25C6D100323FB7; 294 | remoteInfo = "double-conversion"; 295 | }; 296 | A9C119B52014896800EAF9BD /* PBXContainerItemProxy */ = { 297 | isa = PBXContainerItemProxy; 298 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 299 | proxyType = 2; 300 | remoteGlobalIDString = 3D383D621EBD27B9005632C8; 301 | remoteInfo = "double-conversion-tvOS"; 302 | }; 303 | A9C119B72014896800EAF9BD /* PBXContainerItemProxy */ = { 304 | isa = PBXContainerItemProxy; 305 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 306 | proxyType = 2; 307 | remoteGlobalIDString = 9936F3131F5F2E4B0010BF04; 308 | remoteInfo = privatedata; 309 | }; 310 | A9C119B92014896800EAF9BD /* PBXContainerItemProxy */ = { 311 | isa = PBXContainerItemProxy; 312 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 313 | proxyType = 2; 314 | remoteGlobalIDString = 9936F32F1F5F2E5B0010BF04; 315 | remoteInfo = "privatedata-tvOS"; 316 | }; 317 | A9C119C32014995100EAF9BD /* PBXContainerItemProxy */ = { 318 | isa = PBXContainerItemProxy; 319 | containerPortal = A9C119BF2014995100EAF9BD /* RCTCameraRoll.xcodeproj */; 320 | proxyType = 2; 321 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 322 | remoteInfo = RCTCameraRoll; 323 | }; 324 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = { 325 | isa = PBXContainerItemProxy; 326 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 327 | proxyType = 2; 328 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814; 329 | remoteInfo = RCTBlob; 330 | }; 331 | /* End PBXContainerItemProxy section */ 332 | 333 | /* Begin PBXFileReference section */ 334 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 335 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 336 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 337 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 338 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 339 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 340 | 00E356EE1AD99517003FC87E /* exampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = exampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 341 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 342 | 00E356F21AD99517003FC87E /* exampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = exampleTests.m; sourceTree = ""; }; 343 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 344 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 345 | 13B07F961A680F5B00A75B9A /* example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 346 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = example/AppDelegate.h; sourceTree = ""; }; 347 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = example/AppDelegate.m; sourceTree = ""; }; 348 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 349 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = example/Images.xcassets; sourceTree = ""; }; 350 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = example/Info.plist; sourceTree = ""; }; 351 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = example/main.m; sourceTree = ""; }; 352 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 353 | 2D02E47B1E0B4A5D006451C7 /* example-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "example-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 354 | 2D02E4901E0B4A5D006451C7 /* example-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "example-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 355 | 2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; }; 356 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 357 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 358 | 7F2EBA037E60468F8238A014 /* libRNGalleryManager.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNGalleryManager.a; sourceTree = ""; }; 359 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 360 | A9C119BF2014995100EAF9BD /* RCTCameraRoll.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTCameraRoll.xcodeproj; path = "../node_modules/react-native/Libraries/CameraRoll/RCTCameraRoll.xcodeproj"; sourceTree = ""; }; 361 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; }; 362 | F83185355F784DC99237810C /* RNGalleryManager.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNGalleryManager.xcodeproj; path = "../node_modules/react-native-gallery-manager/ios/RNGalleryManager.xcodeproj"; sourceTree = ""; }; 363 | /* End PBXFileReference section */ 364 | 365 | /* Begin PBXFrameworksBuildPhase section */ 366 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 367 | isa = PBXFrameworksBuildPhase; 368 | buildActionMask = 2147483647; 369 | files = ( 370 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 371 | ); 372 | runOnlyForDeploymentPostprocessing = 0; 373 | }; 374 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 375 | isa = PBXFrameworksBuildPhase; 376 | buildActionMask = 2147483647; 377 | files = ( 378 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */, 379 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 380 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 381 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 382 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 383 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 384 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 385 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 386 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 387 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 388 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 389 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 390 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 391 | 98482D1DE303414E96710AFD /* libRNGalleryManager.a in Frameworks */, 392 | ); 393 | runOnlyForDeploymentPostprocessing = 0; 394 | }; 395 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 396 | isa = PBXFrameworksBuildPhase; 397 | buildActionMask = 2147483647; 398 | files = ( 399 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */, 400 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */, 401 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */, 402 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */, 403 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */, 404 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */, 405 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */, 406 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */, 407 | ); 408 | runOnlyForDeploymentPostprocessing = 0; 409 | }; 410 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 411 | isa = PBXFrameworksBuildPhase; 412 | buildActionMask = 2147483647; 413 | files = ( 414 | ); 415 | runOnlyForDeploymentPostprocessing = 0; 416 | }; 417 | /* End PBXFrameworksBuildPhase section */ 418 | 419 | /* Begin PBXGroup section */ 420 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 421 | isa = PBXGroup; 422 | children = ( 423 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 424 | ); 425 | name = Products; 426 | sourceTree = ""; 427 | }; 428 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 429 | isa = PBXGroup; 430 | children = ( 431 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 432 | ); 433 | name = Products; 434 | sourceTree = ""; 435 | }; 436 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 437 | isa = PBXGroup; 438 | children = ( 439 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 440 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 441 | ); 442 | name = Products; 443 | sourceTree = ""; 444 | }; 445 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 446 | isa = PBXGroup; 447 | children = ( 448 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 449 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 450 | ); 451 | name = Products; 452 | sourceTree = ""; 453 | }; 454 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 455 | isa = PBXGroup; 456 | children = ( 457 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 458 | ); 459 | name = Products; 460 | sourceTree = ""; 461 | }; 462 | 00E356EF1AD99517003FC87E /* exampleTests */ = { 463 | isa = PBXGroup; 464 | children = ( 465 | 00E356F21AD99517003FC87E /* exampleTests.m */, 466 | 00E356F01AD99517003FC87E /* Supporting Files */, 467 | ); 468 | path = exampleTests; 469 | sourceTree = ""; 470 | }; 471 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 472 | isa = PBXGroup; 473 | children = ( 474 | 00E356F11AD99517003FC87E /* Info.plist */, 475 | ); 476 | name = "Supporting Files"; 477 | sourceTree = ""; 478 | }; 479 | 139105B71AF99BAD00B5F7CC /* Products */ = { 480 | isa = PBXGroup; 481 | children = ( 482 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 483 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 484 | ); 485 | name = Products; 486 | sourceTree = ""; 487 | }; 488 | 139FDEE71B06529A00C62182 /* Products */ = { 489 | isa = PBXGroup; 490 | children = ( 491 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 492 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 493 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */, 494 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */, 495 | ); 496 | name = Products; 497 | sourceTree = ""; 498 | }; 499 | 13B07FAE1A68108700A75B9A /* example */ = { 500 | isa = PBXGroup; 501 | children = ( 502 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 503 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 504 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 505 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 506 | 13B07FB61A68108700A75B9A /* Info.plist */, 507 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 508 | 13B07FB71A68108700A75B9A /* main.m */, 509 | ); 510 | name = example; 511 | sourceTree = ""; 512 | }; 513 | 146834001AC3E56700842450 /* Products */ = { 514 | isa = PBXGroup; 515 | children = ( 516 | 146834041AC3E56700842450 /* libReact.a */, 517 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */, 518 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 519 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 520 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 521 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 522 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */, 523 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */, 524 | A9C119AC2014896800EAF9BD /* libjsinspector.a */, 525 | A9C119AE2014896800EAF9BD /* libjsinspector-tvOS.a */, 526 | A9C119B02014896800EAF9BD /* libthird-party.a */, 527 | A9C119B22014896800EAF9BD /* libthird-party.a */, 528 | A9C119B42014896800EAF9BD /* libdouble-conversion.a */, 529 | A9C119B62014896800EAF9BD /* libdouble-conversion.a */, 530 | A9C119B82014896800EAF9BD /* libprivatedata.a */, 531 | A9C119BA2014896800EAF9BD /* libprivatedata-tvOS.a */, 532 | ); 533 | name = Products; 534 | sourceTree = ""; 535 | }; 536 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 537 | isa = PBXGroup; 538 | children = ( 539 | 2D16E6891FA4F8E400B85C8A /* libReact.a */, 540 | ); 541 | name = Frameworks; 542 | sourceTree = ""; 543 | }; 544 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 545 | isa = PBXGroup; 546 | children = ( 547 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 548 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */, 549 | ); 550 | name = Products; 551 | sourceTree = ""; 552 | }; 553 | 78C398B11ACF4ADC00677621 /* Products */ = { 554 | isa = PBXGroup; 555 | children = ( 556 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 557 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 558 | ); 559 | name = Products; 560 | sourceTree = ""; 561 | }; 562 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 563 | isa = PBXGroup; 564 | children = ( 565 | A9C119BF2014995100EAF9BD /* RCTCameraRoll.xcodeproj */, 566 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 567 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 568 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 569 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */, 570 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 571 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 572 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 573 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 574 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 575 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 576 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 577 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 578 | F83185355F784DC99237810C /* RNGalleryManager.xcodeproj */, 579 | ); 580 | name = Libraries; 581 | sourceTree = ""; 582 | }; 583 | 832341B11AAA6A8300B99B32 /* Products */ = { 584 | isa = PBXGroup; 585 | children = ( 586 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 587 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 588 | ); 589 | name = Products; 590 | sourceTree = ""; 591 | }; 592 | 83CBB9F61A601CBA00E9B192 = { 593 | isa = PBXGroup; 594 | children = ( 595 | 13B07FAE1A68108700A75B9A /* example */, 596 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 597 | 00E356EF1AD99517003FC87E /* exampleTests */, 598 | 83CBBA001A601CBA00E9B192 /* Products */, 599 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 600 | A903A144201CCA7F00AB9AE9 /* Recovered References */, 601 | ); 602 | indentWidth = 2; 603 | sourceTree = ""; 604 | tabWidth = 2; 605 | usesTabs = 0; 606 | }; 607 | 83CBBA001A601CBA00E9B192 /* Products */ = { 608 | isa = PBXGroup; 609 | children = ( 610 | 13B07F961A680F5B00A75B9A /* example.app */, 611 | 00E356EE1AD99517003FC87E /* exampleTests.xctest */, 612 | 2D02E47B1E0B4A5D006451C7 /* example-tvOS.app */, 613 | 2D02E4901E0B4A5D006451C7 /* example-tvOSTests.xctest */, 614 | ); 615 | name = Products; 616 | sourceTree = ""; 617 | }; 618 | A903A144201CCA7F00AB9AE9 /* Recovered References */ = { 619 | isa = PBXGroup; 620 | children = ( 621 | 7F2EBA037E60468F8238A014 /* libRNGalleryManager.a */, 622 | ); 623 | name = "Recovered References"; 624 | sourceTree = ""; 625 | }; 626 | A903A178201CCA9000AB9AE9 /* Products */ = { 627 | isa = PBXGroup; 628 | children = ( 629 | A903A1A2201CCA9000AB9AE9 /* libRNGalleryManager.a */, 630 | ); 631 | name = Products; 632 | sourceTree = ""; 633 | }; 634 | A9C119C02014995100EAF9BD /* Products */ = { 635 | isa = PBXGroup; 636 | children = ( 637 | A9C119C42014995100EAF9BD /* libRCTCameraRoll.a */, 638 | ); 639 | name = Products; 640 | sourceTree = ""; 641 | }; 642 | ADBDB9201DFEBF0600ED6528 /* Products */ = { 643 | isa = PBXGroup; 644 | children = ( 645 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */, 646 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */, 647 | ); 648 | name = Products; 649 | sourceTree = ""; 650 | }; 651 | /* End PBXGroup section */ 652 | 653 | /* Begin PBXNativeTarget section */ 654 | 00E356ED1AD99517003FC87E /* exampleTests */ = { 655 | isa = PBXNativeTarget; 656 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "exampleTests" */; 657 | buildPhases = ( 658 | 00E356EA1AD99517003FC87E /* Sources */, 659 | 00E356EB1AD99517003FC87E /* Frameworks */, 660 | 00E356EC1AD99517003FC87E /* Resources */, 661 | ); 662 | buildRules = ( 663 | ); 664 | dependencies = ( 665 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 666 | ); 667 | name = exampleTests; 668 | productName = exampleTests; 669 | productReference = 00E356EE1AD99517003FC87E /* exampleTests.xctest */; 670 | productType = "com.apple.product-type.bundle.unit-test"; 671 | }; 672 | 13B07F861A680F5B00A75B9A /* example */ = { 673 | isa = PBXNativeTarget; 674 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "example" */; 675 | buildPhases = ( 676 | 13B07F871A680F5B00A75B9A /* Sources */, 677 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 678 | 13B07F8E1A680F5B00A75B9A /* Resources */, 679 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 680 | ); 681 | buildRules = ( 682 | ); 683 | dependencies = ( 684 | ); 685 | name = example; 686 | productName = "Hello World"; 687 | productReference = 13B07F961A680F5B00A75B9A /* example.app */; 688 | productType = "com.apple.product-type.application"; 689 | }; 690 | 2D02E47A1E0B4A5D006451C7 /* example-tvOS */ = { 691 | isa = PBXNativeTarget; 692 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "example-tvOS" */; 693 | buildPhases = ( 694 | 2D02E4771E0B4A5D006451C7 /* Sources */, 695 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 696 | 2D02E4791E0B4A5D006451C7 /* Resources */, 697 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 698 | ); 699 | buildRules = ( 700 | ); 701 | dependencies = ( 702 | ); 703 | name = "example-tvOS"; 704 | productName = "example-tvOS"; 705 | productReference = 2D02E47B1E0B4A5D006451C7 /* example-tvOS.app */; 706 | productType = "com.apple.product-type.application"; 707 | }; 708 | 2D02E48F1E0B4A5D006451C7 /* example-tvOSTests */ = { 709 | isa = PBXNativeTarget; 710 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "example-tvOSTests" */; 711 | buildPhases = ( 712 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 713 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 714 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 715 | ); 716 | buildRules = ( 717 | ); 718 | dependencies = ( 719 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 720 | ); 721 | name = "example-tvOSTests"; 722 | productName = "example-tvOSTests"; 723 | productReference = 2D02E4901E0B4A5D006451C7 /* example-tvOSTests.xctest */; 724 | productType = "com.apple.product-type.bundle.unit-test"; 725 | }; 726 | /* End PBXNativeTarget section */ 727 | 728 | /* Begin PBXProject section */ 729 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 730 | isa = PBXProject; 731 | attributes = { 732 | LastUpgradeCheck = 610; 733 | ORGANIZATIONNAME = Facebook; 734 | TargetAttributes = { 735 | 00E356ED1AD99517003FC87E = { 736 | CreatedOnToolsVersion = 6.2; 737 | TestTargetID = 13B07F861A680F5B00A75B9A; 738 | }; 739 | 13B07F861A680F5B00A75B9A = { 740 | DevelopmentTeam = XWHEQ7269J; 741 | }; 742 | 2D02E47A1E0B4A5D006451C7 = { 743 | CreatedOnToolsVersion = 8.2.1; 744 | ProvisioningStyle = Automatic; 745 | }; 746 | 2D02E48F1E0B4A5D006451C7 = { 747 | CreatedOnToolsVersion = 8.2.1; 748 | ProvisioningStyle = Automatic; 749 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 750 | }; 751 | }; 752 | }; 753 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "example" */; 754 | compatibilityVersion = "Xcode 3.2"; 755 | developmentRegion = English; 756 | hasScannedForEncodings = 0; 757 | knownRegions = ( 758 | en, 759 | Base, 760 | ); 761 | mainGroup = 83CBB9F61A601CBA00E9B192; 762 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 763 | projectDirPath = ""; 764 | projectReferences = ( 765 | { 766 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 767 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 768 | }, 769 | { 770 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 771 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 772 | }, 773 | { 774 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */; 775 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 776 | }, 777 | { 778 | ProductGroup = A9C119C02014995100EAF9BD /* Products */; 779 | ProjectRef = A9C119BF2014995100EAF9BD /* RCTCameraRoll.xcodeproj */; 780 | }, 781 | { 782 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 783 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 784 | }, 785 | { 786 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 787 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 788 | }, 789 | { 790 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 791 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 792 | }, 793 | { 794 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 795 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 796 | }, 797 | { 798 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 799 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 800 | }, 801 | { 802 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 803 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 804 | }, 805 | { 806 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 807 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 808 | }, 809 | { 810 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 811 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 812 | }, 813 | { 814 | ProductGroup = 146834001AC3E56700842450 /* Products */; 815 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 816 | }, 817 | { 818 | ProductGroup = A903A178201CCA9000AB9AE9 /* Products */; 819 | ProjectRef = F83185355F784DC99237810C /* RNGalleryManager.xcodeproj */; 820 | }, 821 | ); 822 | projectRoot = ""; 823 | targets = ( 824 | 13B07F861A680F5B00A75B9A /* example */, 825 | 00E356ED1AD99517003FC87E /* exampleTests */, 826 | 2D02E47A1E0B4A5D006451C7 /* example-tvOS */, 827 | 2D02E48F1E0B4A5D006451C7 /* example-tvOSTests */, 828 | ); 829 | }; 830 | /* End PBXProject section */ 831 | 832 | /* Begin PBXReferenceProxy section */ 833 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 834 | isa = PBXReferenceProxy; 835 | fileType = archive.ar; 836 | path = libRCTActionSheet.a; 837 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 838 | sourceTree = BUILT_PRODUCTS_DIR; 839 | }; 840 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 841 | isa = PBXReferenceProxy; 842 | fileType = archive.ar; 843 | path = libRCTGeolocation.a; 844 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 845 | sourceTree = BUILT_PRODUCTS_DIR; 846 | }; 847 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 848 | isa = PBXReferenceProxy; 849 | fileType = archive.ar; 850 | path = libRCTImage.a; 851 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 852 | sourceTree = BUILT_PRODUCTS_DIR; 853 | }; 854 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 855 | isa = PBXReferenceProxy; 856 | fileType = archive.ar; 857 | path = libRCTNetwork.a; 858 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 859 | sourceTree = BUILT_PRODUCTS_DIR; 860 | }; 861 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 862 | isa = PBXReferenceProxy; 863 | fileType = archive.ar; 864 | path = libRCTVibration.a; 865 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 866 | sourceTree = BUILT_PRODUCTS_DIR; 867 | }; 868 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 869 | isa = PBXReferenceProxy; 870 | fileType = archive.ar; 871 | path = libRCTSettings.a; 872 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 873 | sourceTree = BUILT_PRODUCTS_DIR; 874 | }; 875 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 876 | isa = PBXReferenceProxy; 877 | fileType = archive.ar; 878 | path = libRCTWebSocket.a; 879 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 880 | sourceTree = BUILT_PRODUCTS_DIR; 881 | }; 882 | 146834041AC3E56700842450 /* libReact.a */ = { 883 | isa = PBXReferenceProxy; 884 | fileType = archive.ar; 885 | path = libReact.a; 886 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 887 | sourceTree = BUILT_PRODUCTS_DIR; 888 | }; 889 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */ = { 890 | isa = PBXReferenceProxy; 891 | fileType = archive.ar; 892 | path = "libRCTBlob-tvOS.a"; 893 | remoteRef = 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */; 894 | sourceTree = BUILT_PRODUCTS_DIR; 895 | }; 896 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */ = { 897 | isa = PBXReferenceProxy; 898 | fileType = archive.ar; 899 | path = libfishhook.a; 900 | remoteRef = 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */; 901 | sourceTree = BUILT_PRODUCTS_DIR; 902 | }; 903 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */ = { 904 | isa = PBXReferenceProxy; 905 | fileType = archive.ar; 906 | path = "libfishhook-tvOS.a"; 907 | remoteRef = 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */; 908 | sourceTree = BUILT_PRODUCTS_DIR; 909 | }; 910 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 911 | isa = PBXReferenceProxy; 912 | fileType = archive.ar; 913 | path = "libRCTImage-tvOS.a"; 914 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 915 | sourceTree = BUILT_PRODUCTS_DIR; 916 | }; 917 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 918 | isa = PBXReferenceProxy; 919 | fileType = archive.ar; 920 | path = "libRCTLinking-tvOS.a"; 921 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 922 | sourceTree = BUILT_PRODUCTS_DIR; 923 | }; 924 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 925 | isa = PBXReferenceProxy; 926 | fileType = archive.ar; 927 | path = "libRCTNetwork-tvOS.a"; 928 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 929 | sourceTree = BUILT_PRODUCTS_DIR; 930 | }; 931 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 932 | isa = PBXReferenceProxy; 933 | fileType = archive.ar; 934 | path = "libRCTSettings-tvOS.a"; 935 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 936 | sourceTree = BUILT_PRODUCTS_DIR; 937 | }; 938 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 939 | isa = PBXReferenceProxy; 940 | fileType = archive.ar; 941 | path = "libRCTText-tvOS.a"; 942 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 943 | sourceTree = BUILT_PRODUCTS_DIR; 944 | }; 945 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 946 | isa = PBXReferenceProxy; 947 | fileType = archive.ar; 948 | path = "libRCTWebSocket-tvOS.a"; 949 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 950 | sourceTree = BUILT_PRODUCTS_DIR; 951 | }; 952 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = { 953 | isa = PBXReferenceProxy; 954 | fileType = archive.ar; 955 | path = libReact.a; 956 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 957 | sourceTree = BUILT_PRODUCTS_DIR; 958 | }; 959 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 960 | isa = PBXReferenceProxy; 961 | fileType = archive.ar; 962 | path = libyoga.a; 963 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 964 | sourceTree = BUILT_PRODUCTS_DIR; 965 | }; 966 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 967 | isa = PBXReferenceProxy; 968 | fileType = archive.ar; 969 | path = libyoga.a; 970 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 971 | sourceTree = BUILT_PRODUCTS_DIR; 972 | }; 973 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 974 | isa = PBXReferenceProxy; 975 | fileType = archive.ar; 976 | path = libcxxreact.a; 977 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 978 | sourceTree = BUILT_PRODUCTS_DIR; 979 | }; 980 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 981 | isa = PBXReferenceProxy; 982 | fileType = archive.ar; 983 | path = libcxxreact.a; 984 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 985 | sourceTree = BUILT_PRODUCTS_DIR; 986 | }; 987 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = { 988 | isa = PBXReferenceProxy; 989 | fileType = archive.ar; 990 | path = libjschelpers.a; 991 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */; 992 | sourceTree = BUILT_PRODUCTS_DIR; 993 | }; 994 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = { 995 | isa = PBXReferenceProxy; 996 | fileType = archive.ar; 997 | path = libjschelpers.a; 998 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; 999 | sourceTree = BUILT_PRODUCTS_DIR; 1000 | }; 1001 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 1002 | isa = PBXReferenceProxy; 1003 | fileType = archive.ar; 1004 | path = libRCTAnimation.a; 1005 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 1006 | sourceTree = BUILT_PRODUCTS_DIR; 1007 | }; 1008 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 1009 | isa = PBXReferenceProxy; 1010 | fileType = archive.ar; 1011 | path = libRCTAnimation.a; 1012 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 1013 | sourceTree = BUILT_PRODUCTS_DIR; 1014 | }; 1015 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 1016 | isa = PBXReferenceProxy; 1017 | fileType = archive.ar; 1018 | path = libRCTLinking.a; 1019 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 1020 | sourceTree = BUILT_PRODUCTS_DIR; 1021 | }; 1022 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 1023 | isa = PBXReferenceProxy; 1024 | fileType = archive.ar; 1025 | path = libRCTText.a; 1026 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 1027 | sourceTree = BUILT_PRODUCTS_DIR; 1028 | }; 1029 | A903A1A2201CCA9000AB9AE9 /* libRNGalleryManager.a */ = { 1030 | isa = PBXReferenceProxy; 1031 | fileType = archive.ar; 1032 | path = libRNGalleryManager.a; 1033 | remoteRef = A903A1A1201CCA9000AB9AE9 /* PBXContainerItemProxy */; 1034 | sourceTree = BUILT_PRODUCTS_DIR; 1035 | }; 1036 | A9C119AC2014896800EAF9BD /* libjsinspector.a */ = { 1037 | isa = PBXReferenceProxy; 1038 | fileType = archive.ar; 1039 | path = libjsinspector.a; 1040 | remoteRef = A9C119AB2014896800EAF9BD /* PBXContainerItemProxy */; 1041 | sourceTree = BUILT_PRODUCTS_DIR; 1042 | }; 1043 | A9C119AE2014896800EAF9BD /* libjsinspector-tvOS.a */ = { 1044 | isa = PBXReferenceProxy; 1045 | fileType = archive.ar; 1046 | path = "libjsinspector-tvOS.a"; 1047 | remoteRef = A9C119AD2014896800EAF9BD /* PBXContainerItemProxy */; 1048 | sourceTree = BUILT_PRODUCTS_DIR; 1049 | }; 1050 | A9C119B02014896800EAF9BD /* libthird-party.a */ = { 1051 | isa = PBXReferenceProxy; 1052 | fileType = archive.ar; 1053 | path = "libthird-party.a"; 1054 | remoteRef = A9C119AF2014896800EAF9BD /* PBXContainerItemProxy */; 1055 | sourceTree = BUILT_PRODUCTS_DIR; 1056 | }; 1057 | A9C119B22014896800EAF9BD /* libthird-party.a */ = { 1058 | isa = PBXReferenceProxy; 1059 | fileType = archive.ar; 1060 | path = "libthird-party.a"; 1061 | remoteRef = A9C119B12014896800EAF9BD /* PBXContainerItemProxy */; 1062 | sourceTree = BUILT_PRODUCTS_DIR; 1063 | }; 1064 | A9C119B42014896800EAF9BD /* libdouble-conversion.a */ = { 1065 | isa = PBXReferenceProxy; 1066 | fileType = archive.ar; 1067 | path = "libdouble-conversion.a"; 1068 | remoteRef = A9C119B32014896800EAF9BD /* PBXContainerItemProxy */; 1069 | sourceTree = BUILT_PRODUCTS_DIR; 1070 | }; 1071 | A9C119B62014896800EAF9BD /* libdouble-conversion.a */ = { 1072 | isa = PBXReferenceProxy; 1073 | fileType = archive.ar; 1074 | path = "libdouble-conversion.a"; 1075 | remoteRef = A9C119B52014896800EAF9BD /* PBXContainerItemProxy */; 1076 | sourceTree = BUILT_PRODUCTS_DIR; 1077 | }; 1078 | A9C119B82014896800EAF9BD /* libprivatedata.a */ = { 1079 | isa = PBXReferenceProxy; 1080 | fileType = archive.ar; 1081 | path = libprivatedata.a; 1082 | remoteRef = A9C119B72014896800EAF9BD /* PBXContainerItemProxy */; 1083 | sourceTree = BUILT_PRODUCTS_DIR; 1084 | }; 1085 | A9C119BA2014896800EAF9BD /* libprivatedata-tvOS.a */ = { 1086 | isa = PBXReferenceProxy; 1087 | fileType = archive.ar; 1088 | path = "libprivatedata-tvOS.a"; 1089 | remoteRef = A9C119B92014896800EAF9BD /* PBXContainerItemProxy */; 1090 | sourceTree = BUILT_PRODUCTS_DIR; 1091 | }; 1092 | A9C119C42014995100EAF9BD /* libRCTCameraRoll.a */ = { 1093 | isa = PBXReferenceProxy; 1094 | fileType = archive.ar; 1095 | path = libRCTCameraRoll.a; 1096 | remoteRef = A9C119C32014995100EAF9BD /* PBXContainerItemProxy */; 1097 | sourceTree = BUILT_PRODUCTS_DIR; 1098 | }; 1099 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = { 1100 | isa = PBXReferenceProxy; 1101 | fileType = archive.ar; 1102 | path = libRCTBlob.a; 1103 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */; 1104 | sourceTree = BUILT_PRODUCTS_DIR; 1105 | }; 1106 | /* End PBXReferenceProxy section */ 1107 | 1108 | /* Begin PBXResourcesBuildPhase section */ 1109 | 00E356EC1AD99517003FC87E /* Resources */ = { 1110 | isa = PBXResourcesBuildPhase; 1111 | buildActionMask = 2147483647; 1112 | files = ( 1113 | ); 1114 | runOnlyForDeploymentPostprocessing = 0; 1115 | }; 1116 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 1117 | isa = PBXResourcesBuildPhase; 1118 | buildActionMask = 2147483647; 1119 | files = ( 1120 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 1121 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 1122 | ); 1123 | runOnlyForDeploymentPostprocessing = 0; 1124 | }; 1125 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 1126 | isa = PBXResourcesBuildPhase; 1127 | buildActionMask = 2147483647; 1128 | files = ( 1129 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 1130 | ); 1131 | runOnlyForDeploymentPostprocessing = 0; 1132 | }; 1133 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 1134 | isa = PBXResourcesBuildPhase; 1135 | buildActionMask = 2147483647; 1136 | files = ( 1137 | ); 1138 | runOnlyForDeploymentPostprocessing = 0; 1139 | }; 1140 | /* End PBXResourcesBuildPhase section */ 1141 | 1142 | /* Begin PBXShellScriptBuildPhase section */ 1143 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 1144 | isa = PBXShellScriptBuildPhase; 1145 | buildActionMask = 2147483647; 1146 | files = ( 1147 | ); 1148 | inputPaths = ( 1149 | ); 1150 | name = "Bundle React Native code and images"; 1151 | outputPaths = ( 1152 | ); 1153 | runOnlyForDeploymentPostprocessing = 0; 1154 | shellPath = /bin/sh; 1155 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1156 | }; 1157 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 1158 | isa = PBXShellScriptBuildPhase; 1159 | buildActionMask = 2147483647; 1160 | files = ( 1161 | ); 1162 | inputPaths = ( 1163 | ); 1164 | name = "Bundle React Native Code And Images"; 1165 | outputPaths = ( 1166 | ); 1167 | runOnlyForDeploymentPostprocessing = 0; 1168 | shellPath = /bin/sh; 1169 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1170 | }; 1171 | /* End PBXShellScriptBuildPhase section */ 1172 | 1173 | /* Begin PBXSourcesBuildPhase section */ 1174 | 00E356EA1AD99517003FC87E /* Sources */ = { 1175 | isa = PBXSourcesBuildPhase; 1176 | buildActionMask = 2147483647; 1177 | files = ( 1178 | 00E356F31AD99517003FC87E /* exampleTests.m in Sources */, 1179 | ); 1180 | runOnlyForDeploymentPostprocessing = 0; 1181 | }; 1182 | 13B07F871A680F5B00A75B9A /* Sources */ = { 1183 | isa = PBXSourcesBuildPhase; 1184 | buildActionMask = 2147483647; 1185 | files = ( 1186 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 1187 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 1188 | ); 1189 | runOnlyForDeploymentPostprocessing = 0; 1190 | }; 1191 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 1192 | isa = PBXSourcesBuildPhase; 1193 | buildActionMask = 2147483647; 1194 | files = ( 1195 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 1196 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 1197 | ); 1198 | runOnlyForDeploymentPostprocessing = 0; 1199 | }; 1200 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 1201 | isa = PBXSourcesBuildPhase; 1202 | buildActionMask = 2147483647; 1203 | files = ( 1204 | 2DCD954D1E0B4F2C00145EB5 /* exampleTests.m in Sources */, 1205 | ); 1206 | runOnlyForDeploymentPostprocessing = 0; 1207 | }; 1208 | /* End PBXSourcesBuildPhase section */ 1209 | 1210 | /* Begin PBXTargetDependency section */ 1211 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 1212 | isa = PBXTargetDependency; 1213 | target = 13B07F861A680F5B00A75B9A /* example */; 1214 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 1215 | }; 1216 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 1217 | isa = PBXTargetDependency; 1218 | target = 2D02E47A1E0B4A5D006451C7 /* example-tvOS */; 1219 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 1220 | }; 1221 | /* End PBXTargetDependency section */ 1222 | 1223 | /* Begin PBXVariantGroup section */ 1224 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 1225 | isa = PBXVariantGroup; 1226 | children = ( 1227 | 13B07FB21A68108700A75B9A /* Base */, 1228 | ); 1229 | name = LaunchScreen.xib; 1230 | path = example; 1231 | sourceTree = ""; 1232 | }; 1233 | /* End PBXVariantGroup section */ 1234 | 1235 | /* Begin XCBuildConfiguration section */ 1236 | 00E356F61AD99517003FC87E /* Debug */ = { 1237 | isa = XCBuildConfiguration; 1238 | buildSettings = { 1239 | BUNDLE_LOADER = "$(TEST_HOST)"; 1240 | GCC_PREPROCESSOR_DEFINITIONS = ( 1241 | "DEBUG=1", 1242 | "$(inherited)", 1243 | ); 1244 | HEADER_SEARCH_PATHS = ( 1245 | "$(inherited)", 1246 | "$(SRCROOT)/../node_modules/react-native-gallery-manager/ios/**", 1247 | ); 1248 | INFOPLIST_FILE = exampleTests/Info.plist; 1249 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1250 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1251 | LIBRARY_SEARCH_PATHS = ( 1252 | "$(inherited)", 1253 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1254 | ); 1255 | OTHER_LDFLAGS = ( 1256 | "-ObjC", 1257 | "-lc++", 1258 | ); 1259 | PRODUCT_NAME = "$(TARGET_NAME)"; 1260 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/example.app/example"; 1261 | }; 1262 | name = Debug; 1263 | }; 1264 | 00E356F71AD99517003FC87E /* Release */ = { 1265 | isa = XCBuildConfiguration; 1266 | buildSettings = { 1267 | BUNDLE_LOADER = "$(TEST_HOST)"; 1268 | COPY_PHASE_STRIP = NO; 1269 | HEADER_SEARCH_PATHS = ( 1270 | "$(inherited)", 1271 | "$(SRCROOT)/../node_modules/react-native-gallery-manager/ios/**", 1272 | ); 1273 | INFOPLIST_FILE = exampleTests/Info.plist; 1274 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1275 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1276 | LIBRARY_SEARCH_PATHS = ( 1277 | "$(inherited)", 1278 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1279 | ); 1280 | OTHER_LDFLAGS = ( 1281 | "-ObjC", 1282 | "-lc++", 1283 | ); 1284 | PRODUCT_NAME = "$(TARGET_NAME)"; 1285 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/example.app/example"; 1286 | }; 1287 | name = Release; 1288 | }; 1289 | 13B07F941A680F5B00A75B9A /* Debug */ = { 1290 | isa = XCBuildConfiguration; 1291 | buildSettings = { 1292 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1293 | CURRENT_PROJECT_VERSION = 1; 1294 | DEAD_CODE_STRIPPING = NO; 1295 | DEVELOPMENT_TEAM = XWHEQ7269J; 1296 | HEADER_SEARCH_PATHS = ( 1297 | "$(inherited)", 1298 | "$(SRCROOT)/../node_modules/react-native-gallery-manager/ios/**", 1299 | ); 1300 | INFOPLIST_FILE = example/Info.plist; 1301 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1302 | OTHER_LDFLAGS = ( 1303 | "$(inherited)", 1304 | "-ObjC", 1305 | "-lc++", 1306 | ); 1307 | PRODUCT_BUNDLE_IDENTIFIER = org.pentarex.rn.gallerymanager; 1308 | PRODUCT_NAME = example; 1309 | VERSIONING_SYSTEM = "apple-generic"; 1310 | }; 1311 | name = Debug; 1312 | }; 1313 | 13B07F951A680F5B00A75B9A /* Release */ = { 1314 | isa = XCBuildConfiguration; 1315 | buildSettings = { 1316 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1317 | CURRENT_PROJECT_VERSION = 1; 1318 | DEVELOPMENT_TEAM = XWHEQ7269J; 1319 | HEADER_SEARCH_PATHS = ( 1320 | "$(inherited)", 1321 | "$(SRCROOT)/../node_modules/react-native-gallery-manager/ios/**", 1322 | ); 1323 | INFOPLIST_FILE = example/Info.plist; 1324 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1325 | OTHER_LDFLAGS = ( 1326 | "$(inherited)", 1327 | "-ObjC", 1328 | "-lc++", 1329 | ); 1330 | PRODUCT_BUNDLE_IDENTIFIER = org.pentarex.rn.gallerymanager; 1331 | PRODUCT_NAME = example; 1332 | VERSIONING_SYSTEM = "apple-generic"; 1333 | }; 1334 | name = Release; 1335 | }; 1336 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 1337 | isa = XCBuildConfiguration; 1338 | buildSettings = { 1339 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1340 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1341 | CLANG_ANALYZER_NONNULL = YES; 1342 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1343 | CLANG_WARN_INFINITE_RECURSION = YES; 1344 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1345 | DEBUG_INFORMATION_FORMAT = dwarf; 1346 | ENABLE_TESTABILITY = YES; 1347 | GCC_NO_COMMON_BLOCKS = YES; 1348 | HEADER_SEARCH_PATHS = ( 1349 | "$(inherited)", 1350 | "$(SRCROOT)/../node_modules/react-native-gallery-manager/ios/**", 1351 | ); 1352 | INFOPLIST_FILE = "example-tvOS/Info.plist"; 1353 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1354 | LIBRARY_SEARCH_PATHS = ( 1355 | "$(inherited)", 1356 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1357 | ); 1358 | OTHER_LDFLAGS = ( 1359 | "-ObjC", 1360 | "-lc++", 1361 | ); 1362 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.example-tvOS"; 1363 | PRODUCT_NAME = "$(TARGET_NAME)"; 1364 | SDKROOT = appletvos; 1365 | TARGETED_DEVICE_FAMILY = 3; 1366 | TVOS_DEPLOYMENT_TARGET = 9.2; 1367 | }; 1368 | name = Debug; 1369 | }; 1370 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 1371 | isa = XCBuildConfiguration; 1372 | buildSettings = { 1373 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1374 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1375 | CLANG_ANALYZER_NONNULL = YES; 1376 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1377 | CLANG_WARN_INFINITE_RECURSION = YES; 1378 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1379 | COPY_PHASE_STRIP = NO; 1380 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1381 | GCC_NO_COMMON_BLOCKS = YES; 1382 | HEADER_SEARCH_PATHS = ( 1383 | "$(inherited)", 1384 | "$(SRCROOT)/../node_modules/react-native-gallery-manager/ios/**", 1385 | ); 1386 | INFOPLIST_FILE = "example-tvOS/Info.plist"; 1387 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1388 | LIBRARY_SEARCH_PATHS = ( 1389 | "$(inherited)", 1390 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1391 | ); 1392 | OTHER_LDFLAGS = ( 1393 | "-ObjC", 1394 | "-lc++", 1395 | ); 1396 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.example-tvOS"; 1397 | PRODUCT_NAME = "$(TARGET_NAME)"; 1398 | SDKROOT = appletvos; 1399 | TARGETED_DEVICE_FAMILY = 3; 1400 | TVOS_DEPLOYMENT_TARGET = 9.2; 1401 | }; 1402 | name = Release; 1403 | }; 1404 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 1405 | isa = XCBuildConfiguration; 1406 | buildSettings = { 1407 | BUNDLE_LOADER = "$(TEST_HOST)"; 1408 | CLANG_ANALYZER_NONNULL = YES; 1409 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1410 | CLANG_WARN_INFINITE_RECURSION = YES; 1411 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1412 | DEBUG_INFORMATION_FORMAT = dwarf; 1413 | ENABLE_TESTABILITY = YES; 1414 | GCC_NO_COMMON_BLOCKS = YES; 1415 | INFOPLIST_FILE = "example-tvOSTests/Info.plist"; 1416 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1417 | LIBRARY_SEARCH_PATHS = ( 1418 | "$(inherited)", 1419 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1420 | ); 1421 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.example-tvOSTests"; 1422 | PRODUCT_NAME = "$(TARGET_NAME)"; 1423 | SDKROOT = appletvos; 1424 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/example-tvOS.app/example-tvOS"; 1425 | TVOS_DEPLOYMENT_TARGET = 10.1; 1426 | }; 1427 | name = Debug; 1428 | }; 1429 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 1430 | isa = XCBuildConfiguration; 1431 | buildSettings = { 1432 | BUNDLE_LOADER = "$(TEST_HOST)"; 1433 | CLANG_ANALYZER_NONNULL = YES; 1434 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1435 | CLANG_WARN_INFINITE_RECURSION = YES; 1436 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1437 | COPY_PHASE_STRIP = NO; 1438 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1439 | GCC_NO_COMMON_BLOCKS = YES; 1440 | INFOPLIST_FILE = "example-tvOSTests/Info.plist"; 1441 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1442 | LIBRARY_SEARCH_PATHS = ( 1443 | "$(inherited)", 1444 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1445 | ); 1446 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.example-tvOSTests"; 1447 | PRODUCT_NAME = "$(TARGET_NAME)"; 1448 | SDKROOT = appletvos; 1449 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/example-tvOS.app/example-tvOS"; 1450 | TVOS_DEPLOYMENT_TARGET = 10.1; 1451 | }; 1452 | name = Release; 1453 | }; 1454 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 1455 | isa = XCBuildConfiguration; 1456 | buildSettings = { 1457 | ALWAYS_SEARCH_USER_PATHS = NO; 1458 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1459 | CLANG_CXX_LIBRARY = "libc++"; 1460 | CLANG_ENABLE_MODULES = YES; 1461 | CLANG_ENABLE_OBJC_ARC = YES; 1462 | CLANG_WARN_BOOL_CONVERSION = YES; 1463 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1464 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1465 | CLANG_WARN_EMPTY_BODY = YES; 1466 | CLANG_WARN_ENUM_CONVERSION = YES; 1467 | CLANG_WARN_INT_CONVERSION = YES; 1468 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1469 | CLANG_WARN_UNREACHABLE_CODE = YES; 1470 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1471 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1472 | COPY_PHASE_STRIP = NO; 1473 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1474 | GCC_C_LANGUAGE_STANDARD = gnu99; 1475 | GCC_DYNAMIC_NO_PIC = NO; 1476 | GCC_OPTIMIZATION_LEVEL = 0; 1477 | GCC_PREPROCESSOR_DEFINITIONS = ( 1478 | "DEBUG=1", 1479 | "$(inherited)", 1480 | ); 1481 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1482 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1483 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1484 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1485 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1486 | GCC_WARN_UNUSED_FUNCTION = YES; 1487 | GCC_WARN_UNUSED_VARIABLE = YES; 1488 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1489 | MTL_ENABLE_DEBUG_INFO = YES; 1490 | ONLY_ACTIVE_ARCH = YES; 1491 | SDKROOT = iphoneos; 1492 | }; 1493 | name = Debug; 1494 | }; 1495 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1496 | isa = XCBuildConfiguration; 1497 | buildSettings = { 1498 | ALWAYS_SEARCH_USER_PATHS = NO; 1499 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1500 | CLANG_CXX_LIBRARY = "libc++"; 1501 | CLANG_ENABLE_MODULES = YES; 1502 | CLANG_ENABLE_OBJC_ARC = YES; 1503 | CLANG_WARN_BOOL_CONVERSION = YES; 1504 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1505 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1506 | CLANG_WARN_EMPTY_BODY = YES; 1507 | CLANG_WARN_ENUM_CONVERSION = YES; 1508 | CLANG_WARN_INT_CONVERSION = YES; 1509 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1510 | CLANG_WARN_UNREACHABLE_CODE = YES; 1511 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1512 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1513 | COPY_PHASE_STRIP = YES; 1514 | ENABLE_NS_ASSERTIONS = NO; 1515 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1516 | GCC_C_LANGUAGE_STANDARD = gnu99; 1517 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1518 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1519 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1520 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1521 | GCC_WARN_UNUSED_FUNCTION = YES; 1522 | GCC_WARN_UNUSED_VARIABLE = YES; 1523 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1524 | MTL_ENABLE_DEBUG_INFO = NO; 1525 | SDKROOT = iphoneos; 1526 | VALIDATE_PRODUCT = YES; 1527 | }; 1528 | name = Release; 1529 | }; 1530 | /* End XCBuildConfiguration section */ 1531 | 1532 | /* Begin XCConfigurationList section */ 1533 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "exampleTests" */ = { 1534 | isa = XCConfigurationList; 1535 | buildConfigurations = ( 1536 | 00E356F61AD99517003FC87E /* Debug */, 1537 | 00E356F71AD99517003FC87E /* Release */, 1538 | ); 1539 | defaultConfigurationIsVisible = 0; 1540 | defaultConfigurationName = Release; 1541 | }; 1542 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "example" */ = { 1543 | isa = XCConfigurationList; 1544 | buildConfigurations = ( 1545 | 13B07F941A680F5B00A75B9A /* Debug */, 1546 | 13B07F951A680F5B00A75B9A /* Release */, 1547 | ); 1548 | defaultConfigurationIsVisible = 0; 1549 | defaultConfigurationName = Release; 1550 | }; 1551 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "example-tvOS" */ = { 1552 | isa = XCConfigurationList; 1553 | buildConfigurations = ( 1554 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1555 | 2D02E4981E0B4A5E006451C7 /* Release */, 1556 | ); 1557 | defaultConfigurationIsVisible = 0; 1558 | defaultConfigurationName = Release; 1559 | }; 1560 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "example-tvOSTests" */ = { 1561 | isa = XCConfigurationList; 1562 | buildConfigurations = ( 1563 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1564 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1565 | ); 1566 | defaultConfigurationIsVisible = 0; 1567 | defaultConfigurationName = Release; 1568 | }; 1569 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "example" */ = { 1570 | isa = XCConfigurationList; 1571 | buildConfigurations = ( 1572 | 83CBBA201A601CBA00E9B192 /* Debug */, 1573 | 83CBBA211A601CBA00E9B192 /* Release */, 1574 | ); 1575 | defaultConfigurationIsVisible = 0; 1576 | defaultConfigurationName = Release; 1577 | }; 1578 | /* End XCConfigurationList section */ 1579 | }; 1580 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1581 | } 1582 | -------------------------------------------------------------------------------- /example/ios/example.xcodeproj/xcshareddata/xcschemes/example-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 | -------------------------------------------------------------------------------- /example/ios/example.xcodeproj/xcshareddata/xcschemes/example.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 | -------------------------------------------------------------------------------- /example/ios/example/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 | -------------------------------------------------------------------------------- /example/ios/example/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:@"example" 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 | -------------------------------------------------------------------------------- /example/ios/example/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 | -------------------------------------------------------------------------------- /example/ios/example/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 | } -------------------------------------------------------------------------------- /example/ios/example/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /example/ios/example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NSPhotoLibraryUsageDescription 6 | Give access to photo library 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleDisplayName 10 | example 11 | CFBundleExecutable 12 | $(EXECUTABLE_NAME) 13 | CFBundleIdentifier 14 | $(PRODUCT_BUNDLE_IDENTIFIER) 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundleName 18 | $(PRODUCT_NAME) 19 | CFBundlePackageType 20 | APPL 21 | CFBundleShortVersionString 22 | 1.0 23 | CFBundleSignature 24 | ???? 25 | CFBundleVersion 26 | 1 27 | LSRequiresIPhoneOS 28 | 29 | NSAppTransportSecurity 30 | 31 | NSExceptionDomains 32 | 33 | localhost 34 | 35 | NSExceptionAllowsInsecureHTTPLoads 36 | 37 | 38 | 39 | 40 | NSLocationWhenInUseUsageDescription 41 | 42 | UILaunchStoryboardName 43 | LaunchScreen 44 | UIRequiredDeviceCapabilities 45 | 46 | armv7 47 | 48 | UISupportedInterfaceOrientations 49 | 50 | UIInterfaceOrientationPortrait 51 | UIInterfaceOrientationLandscapeLeft 52 | UIInterfaceOrientationLandscapeRight 53 | 54 | UIViewControllerBasedStatusBarAppearance 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /example/ios/example/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 | -------------------------------------------------------------------------------- /example/ios/exampleTests/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 | -------------------------------------------------------------------------------- /example/ios/exampleTests/exampleTests.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 exampleTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation exampleTests 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 | -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example", 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-gallery-manager": "file:../" 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 | } 24 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | import { 2 | NativeModules, 3 | Platform, 4 | PermissionsAndroid 5 | } from 'react-native'; 6 | 7 | const RNGalleryManager = NativeModules.RNGalleryManager; 8 | 9 | const GalleryManager = { 10 | /** 11 | * Get Assets from the gallery 12 | * @param {object} params Object with params 13 | * @param {string} params.type Type of the asset. Can be - image, video, all 14 | * @param {number} params.limit Number of assets returned 15 | * @param {number} params.startFrom From which index to start 16 | * @param {string} params.albumName If requesting items from album -> set the album name 17 | */ 18 | getAssets(params) { 19 | return RNGalleryManager.getAssets(params); 20 | }, 21 | 22 | /** 23 | * To Request authorization for access photos 24 | * returns Promise 25 | */ 26 | requestAuthorization(title, message) { 27 | if (Platform.OS === 'ios') { 28 | return RNGalleryManager.requestAuthorization(); 29 | } else { 30 | return new Promise(async (resolve, reject) => { 31 | const granted = await PermissionsAndroid.request(PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE, { 32 | title: title, 33 | message: message, 34 | }); 35 | 36 | // On devices before SDK version 23, the permissions are automatically granted if they appear in the manifest, 37 | // so check and request should always be true. 38 | // https://github.com/facebook/react-native-website/blob/master/docs/permissionsandroid.md 39 | const isAuthorized = 40 | Platform.Version >= 23 ? granted === PermissionsAndroid.RESULTS.GRANTED : granted === true; 41 | 42 | if (isAuthorized) { 43 | resolve({ isAuthorized: true }); 44 | } else { 45 | resolve({ isAuthorized: false }) 46 | } 47 | }); 48 | } 49 | 50 | }, 51 | 52 | /** 53 | * Get List with album names 54 | */ 55 | getAlbums() { 56 | return RNGalleryManager.getAlbums(); 57 | }, 58 | 59 | /** 60 | * Convert video 61 | */ 62 | convertVideo(params) { 63 | return RNGalleryManager.convertVideo(params); 64 | } 65 | } 66 | 67 | module.exports = GalleryManager; -------------------------------------------------------------------------------- /ios/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pentarex/react-native-gallery-manager/d09fcf2cf63fbbcbac76f9b287d5652200ff203a/ios/.DS_Store -------------------------------------------------------------------------------- /ios/RNGalleryManager.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface RNGalleryManager : NSObject 4 | 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /ios/RNGalleryManager.m: -------------------------------------------------------------------------------- 1 | #import "RNGalleryManager.h" 2 | 3 | #import 4 | #import 5 | #import 6 | 7 | #import 8 | 9 | @implementation RCTConvert (PHAssetGroup) 10 | 11 | +(NSPredicate *) PHAssetType:(id)json 12 | { 13 | static NSDictionary *options; 14 | static dispatch_once_t onceToken; 15 | dispatch_once(&onceToken, ^{ 16 | options = @{ 17 | @"image": [NSPredicate predicateWithFormat:@"(mediaType = %d)", PHAssetMediaTypeImage], 18 | @"video": [NSPredicate predicateWithFormat:@"(mediaType = %d)", PHAssetMediaTypeVideo], 19 | @"all": [NSPredicate predicateWithFormat:@"(mediaType = %d) || (mediaType = %d)", PHAssetMediaTypeImage, PHAssetMediaTypeVideo] 20 | }; 21 | }); 22 | 23 | NSPredicate *filter = options[json ?: @"image"]; 24 | if (!filter) { 25 | RCTLogError(@"Invalid type option: '%@'. Expected one of 'image'," 26 | "'video' or 'all'.", json); 27 | } 28 | return filter ?: [NSPredicate predicateWithFormat:@"(mediaType = %d) || (mediaType = %d)", PHAssetMediaTypeImage, PHAssetMediaTypeVideo]; 29 | } 30 | 31 | +(NSString *) PHCompressType:(id)json 32 | { 33 | static NSDictionary *options; 34 | static dispatch_once_t onceToken; 35 | dispatch_once(&onceToken, ^{ 36 | options = @{ 37 | @"original": AVAssetExportPresetPassthrough, 38 | @"low": AVAssetExportPresetLowQuality, 39 | @"medium": AVAssetExportPresetMediumQuality, 40 | @"high": AVAssetExportPresetHighestQuality, 41 | }; 42 | }); 43 | 44 | NSString *filter = options[json ?: AVAssetExportPresetPassthrough]; 45 | if (!filter) { 46 | RCTLogError(@"Invalid type option: '%@'. Expected one of 'original'," 47 | "'low', 'medium' or 'high'.", json); 48 | } 49 | return filter ?: AVAssetExportPresetPassthrough; 50 | } 51 | 52 | +(AVFileType) PHFileType:(id)json 53 | { 54 | static NSDictionary *options; 55 | static dispatch_once_t onceToken; 56 | dispatch_once(&onceToken, ^{ 57 | options = @{ 58 | @"mpeg4": AVFileTypeMPEG4, 59 | @"m4v": AVFileTypeAppleM4V, 60 | @"mov": AVFileTypeQuickTimeMovie 61 | }; 62 | }); 63 | 64 | AVFileType filter = options[json ?: AVFileTypeMPEG4]; 65 | if (!filter) { 66 | RCTLogError(@"Invalid type option: '%@'. Expected one of 'mpeg4'," 67 | "'m4v' or 'mov'.", json); 68 | } 69 | return filter ?: AVFileTypeMPEG4; 70 | } 71 | 72 | 73 | @end 74 | 75 | 76 | 77 | @implementation RNGalleryManager 78 | RCT_EXPORT_MODULE(); 79 | 80 | /* Get the assets from the gallery */ 81 | RCT_EXPORT_METHOD(getAssets:(NSDictionary *)params 82 | resolver:(RCTPromiseResolveBlock)resolve 83 | rejecter:(RCTPromiseRejectBlock)reject) 84 | { 85 | checkPhotoLibraryConfig(); // check if the permission is set in info.plist 86 | NSPredicate *predicate = [RCTConvert PHAssetType:params[@"type"]]; // can be video, image or all 87 | NSUInteger limit = [RCTConvert NSInteger:params[@"limit"]] ?: 10; // how many assets to return DEFAULT 10 88 | NSUInteger startFrom = [RCTConvert NSInteger:params[@"startFrom"]] ?: 0; // from which index should start DEFAULT 0 89 | NSString *albumName = [RCTConvert NSString:params[@"albumName"]] ?: @""; // album name 90 | 91 | 92 | // Build the options based on the user request (currently only type of assets) 93 | PHFetchOptions *fetchOptions = [[PHFetchOptions alloc] init]; 94 | fetchOptions.predicate = predicate; 95 | fetchOptions.sortDescriptors = @[[NSSortDescriptor sortDescriptorWithKey:@"creationDate" ascending:NO]]; 96 | 97 | 98 | PHFetchResult * _Nonnull fetchResults; 99 | if (![albumName isEqualToString:@""]) 100 | { 101 | PHFetchOptions *albumFetchOptions = [[PHFetchOptions alloc] init]; 102 | albumFetchOptions.predicate = [NSPredicate predicateWithFormat:@"title = %@", albumName]; 103 | __block PHAssetCollection *collection = [PHAssetCollection fetchAssetCollectionsWithType:PHAssetCollectionTypeAlbum 104 | subtype:PHAssetCollectionSubtypeAny 105 | options:albumFetchOptions].firstObject; 106 | fetchResults = [PHAsset fetchAssetsInAssetCollection:collection options:fetchOptions]; 107 | } 108 | else 109 | { 110 | 111 | fetchResults = [PHAsset fetchAssetsWithOptions:fetchOptions]; // get the assets 112 | } 113 | 114 | BOOL __block hasMore = NO; 115 | NSInteger endIndex = startFrom + limit; 116 | NSMutableArray *> *assets = [NSMutableArray new]; 117 | NSIndexSet *indexSet = [NSIndexSet alloc]; 118 | int resultsLeft = (int)[fetchResults count] - (int)(startFrom + limit); 119 | if ( resultsLeft > 0) 120 | { 121 | indexSet = [[NSIndexSet alloc] initWithIndexesInRange:NSMakeRange(startFrom, limit)]; 122 | hasMore = YES; // check if there are more results 123 | } 124 | else 125 | { 126 | indexSet = [[NSIndexSet alloc] initWithIndexesInRange:NSMakeRange(startFrom, (int)[fetchResults count] - startFrom)]; 127 | endIndex = (int)[fetchResults count]-1; 128 | } 129 | 130 | NSArray *results = [fetchResults objectsAtIndexes:indexSet]; 131 | 132 | for (PHAsset* asset in results) { 133 | NSArray *resources = [PHAssetResource assetResourcesForAsset:asset ]; 134 | if ([resources count] < 1) continue; 135 | NSString *orgFilename = ((PHAssetResource*)resources[0]).originalFilename; 136 | NSString *uit = ((PHAssetResource*)resources[0]).uniformTypeIdentifier; 137 | NSString *mimeType = (NSString *)CFBridgingRelease(UTTypeCopyPreferredTagWithClass((__bridge CFStringRef _Nonnull)(uit), kUTTagClassMIMEType)); 138 | CFStringRef extension = UTTypeCopyPreferredTagWithClass((__bridge CFStringRef _Nonnull)(uit), kUTTagClassFilenameExtension); 139 | 140 | [assets addObject:@{ 141 | @"type": [self getMediaType:([asset mediaType])], 142 | @"width": @([asset pixelWidth]), 143 | @"height": @([asset pixelHeight]), 144 | @"filename": orgFilename ?: @"", 145 | @"mimeType": mimeType ?: @"", 146 | @"id": [asset localIdentifier], 147 | @"creationDate": [asset creationDate], 148 | @"uri": [self buildAssetUri:[asset localIdentifier] extension:extension lowQ:NO], 149 | @"lowQualityUri": [self buildAssetUri:[asset localIdentifier] extension:extension lowQ:YES], 150 | @"duration": @([asset duration]) 151 | }]; 152 | } 153 | 154 | // resolve 155 | resolve( 156 | @{ 157 | @"assets": assets, 158 | @"hasMore": @(hasMore), 159 | @"next": @(endIndex), 160 | @"totalAssets": @(fetchResults.count) 161 | } 162 | ); 163 | 164 | // reject 165 | 166 | 167 | } 168 | 169 | /* Get list of albums */ 170 | RCT_EXPORT_METHOD(getAlbums: (RCTPromiseResolveBlock)resolve 171 | rejecter:(RCTPromiseRejectBlock)reject) 172 | { 173 | checkPhotoLibraryConfig(); // check if the permission is set in info.plist 174 | PHFetchOptions *fetchOptions = [[PHFetchOptions alloc] init]; 175 | PHFetchResult * _Nonnull albums = [PHAssetCollection fetchAssetCollectionsWithType:PHAssetCollectionTypeAlbum subtype:PHAssetCollectionSubtypeAny options:fetchOptions]; 176 | 177 | NSMutableArray *> *result = [NSMutableArray new]; 178 | [albums enumerateObjectsUsingBlock:^(PHAssetCollection * _Nonnull album, NSUInteger index, BOOL * _Nonnull stop) { 179 | [result addObject:@{ 180 | @"title": [album localizedTitle], 181 | @"assetCount": @([album estimatedAssetCount]) 182 | }]; 183 | }]; 184 | 185 | resolve( 186 | @{ 187 | @"albums": result, 188 | @"totalAlbums": @(albums.count) 189 | } 190 | ); 191 | 192 | 193 | } 194 | 195 | RCT_EXPORT_METHOD(convertVideo:(NSDictionary *)params 196 | resolver:(RCTPromiseResolveBlock)resolve 197 | rejecter:(RCTPromiseRejectBlock)reject) { 198 | 199 | // Converting the params from the user 200 | NSString *assetId = [RCTConvert NSString:params[@"id"]] ?: @""; 201 | AVFileType outputFileType = [RCTConvert PHFileType:params[@"convertTo"]] ?: AVFileTypeMPEG4; 202 | NSString *pressetType = [RCTConvert PHCompressType:params[@"quality"]] ?: AVAssetExportPresetPassthrough; 203 | 204 | // Throwing some errors to the user if he is not careful enough 205 | if ([assetId isEqualToString:@""]) { 206 | NSError *error = [NSError errorWithDomain:@"RNGalleryManager" code: -91 userInfo:nil]; 207 | reject(@"Missing Parameter", @"id is mandatory", error); 208 | return; 209 | } 210 | 211 | // Getting Video Asset 212 | NSArray* localIds = [NSArray arrayWithObjects: assetId, nil]; 213 | PHAsset * _Nullable videoAsset = [PHAsset fetchAssetsWithLocalIdentifiers:localIds options:nil].firstObject; 214 | 215 | // Getting information from the asset 216 | NSString *mimeType = (NSString *)CFBridgingRelease(UTTypeCopyPreferredTagWithClass((__bridge CFStringRef _Nonnull)(outputFileType), kUTTagClassMIMEType)); 217 | CFStringRef uti = UTTypeCreatePreferredIdentifierForTag(kUTTagClassMIMEType, (__bridge CFStringRef _Nonnull)(mimeType), NULL); 218 | NSString *extension = (NSString *)CFBridgingRelease(UTTypeCopyPreferredTagWithClass(uti, kUTTagClassFilenameExtension)); 219 | 220 | // Creating output url and temp file name 221 | NSURL * _Nullable temDir = [[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask].firstObject; 222 | NSString *newFileName = [[NSUUID UUID] UUIDString]; 223 | NSString *tempName = [NSString stringWithFormat: @"%@.%@", newFileName, extension]; 224 | NSURL *outputUrl = [NSURL fileURLWithPath:[temDir.path stringByAppendingPathComponent:tempName]]; 225 | 226 | // Setting video export session options 227 | PHVideoRequestOptions *videoRequestOptions = [[PHVideoRequestOptions alloc] init]; 228 | videoRequestOptions.networkAccessAllowed = YES; 229 | videoRequestOptions.deliveryMode = PHVideoRequestOptionsDeliveryModeHighQualityFormat; 230 | 231 | // Creating new export session 232 | [[PHImageManager defaultManager] requestExportSessionForVideo:videoAsset options:videoRequestOptions exportPreset:pressetType resultHandler:^(AVAssetExportSession * _Nullable exportSession, NSDictionary * _Nullable info) { 233 | 234 | exportSession.shouldOptimizeForNetworkUse = YES; 235 | exportSession.outputFileType = outputFileType; 236 | exportSession.outputURL = outputUrl; 237 | // Converting the video and waiting to see whats going to happen 238 | [exportSession exportAsynchronouslyWithCompletionHandler:^{ 239 | switch ([exportSession status]) 240 | { 241 | case AVAssetExportSessionStatusFailed: 242 | { 243 | NSError* error = exportSession.error; 244 | NSString *codeWithDomain = [NSString stringWithFormat:@"E%@%zd", error.domain.uppercaseString, error.code]; 245 | reject(codeWithDomain, error.localizedDescription, error); 246 | break; 247 | } 248 | case AVAssetExportSessionStatusCancelled: 249 | { 250 | NSError *error = [NSError errorWithDomain:@"RNGalleryManager" code: -91 userInfo:nil]; 251 | reject(@"Cancelled", @"Export canceled", error); 252 | break; 253 | } 254 | case AVAssetExportSessionStatusCompleted: 255 | { 256 | resolve( 257 | @{ 258 | @"type": @"video", 259 | @"filename": tempName ?: @"", 260 | @"mimeType": mimeType ?: @"", 261 | @"path": outputUrl.absoluteString, 262 | @"duration": @([videoAsset duration]) 263 | } 264 | ); 265 | break; 266 | } 267 | default: 268 | { 269 | NSError *error = [NSError errorWithDomain:@"RNGalleryManager" code: -91 userInfo:nil]; 270 | reject(@"Unknown", @"Unknown status", error); 271 | break; 272 | } 273 | } 274 | }]; 275 | }]; 276 | 277 | 278 | 279 | 280 | 281 | } 282 | 283 | /* To Request Authorization for photos */ 284 | RCT_EXPORT_METHOD(requestAuthorization:(RCTPromiseResolveBlock)resolve 285 | reject:(RCTPromiseRejectBlock)reject) 286 | { 287 | [PHPhotoLibrary requestAuthorization:^(PHAuthorizationStatus status) { 288 | 289 | resolve(@{ 290 | @"isAuthorized" : @((BOOL)(status == PHAuthorizationStatusAuthorized)) 291 | }); 292 | }]; 293 | } 294 | 295 | 296 | // Get the media type 297 | -(NSString *)getMediaType:(PHAssetMediaType)mediaType 298 | { 299 | if(mediaType == PHAssetMediaTypeVideo) return @"video"; 300 | if(mediaType == PHAssetMediaTypeImage) return @"image"; 301 | return @"unknown"; 302 | } 303 | 304 | // Build asset url out of localIdentifier and extension 305 | -(NSString *)buildAssetUri:(NSString *)localIdentifier extension:(CFStringRef)extension lowQ:(Boolean)lowq 306 | { 307 | NSRange range = [localIdentifier rangeOfString:@"/"]; 308 | if (range.location != NSNotFound) { 309 | NSString *identifier = [localIdentifier substringWithRange:NSMakeRange(0, range.location)]; 310 | // assets-library://asset/asset.JPG?id=762BFA34-62B1-40FF-B214-44BDE5E98B34&ext=JPG 311 | NSString *uri; 312 | if (lowq) { 313 | uri = [NSString stringWithFormat:@"lowq-assets-library://asset/asset.%@?id=%@&ext=%@", extension, identifier, extension]; 314 | } else { 315 | uri = [NSString stringWithFormat:@"assets-library://asset/asset.%@?id=%@&ext=%@", extension, identifier, extension]; 316 | } 317 | 318 | return uri; 319 | } 320 | return @""; 321 | } 322 | 323 | // check if the permission is set in info.plist 324 | static void checkPhotoLibraryConfig() 325 | { 326 | #if RCT_DEV 327 | if (![[NSBundle mainBundle] objectForInfoDictionaryKey:@"NSPhotoLibraryUsageDescription"]) { 328 | RCTLogError(@"NSPhotoLibraryUsageDescription key must be present in Info.plist to use camera roll."); 329 | } 330 | #endif 331 | } 332 | 333 | @end 334 | 335 | -------------------------------------------------------------------------------- /ios/RNGalleryManager.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 13BE3DEE1AC21097009241FE /* RNGalleryManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 13BE3DED1AC21097009241FE /* RNGalleryManager.m */; }; 11 | A9C119D120149D3E00EAF9BD /* RNImageLoader.m in Sources */ = {isa = PBXBuildFile; fileRef = A9C119D020149D3E00EAF9BD /* RNImageLoader.m */; }; 12 | /* End PBXBuildFile section */ 13 | 14 | /* Begin PBXCopyFilesBuildPhase section */ 15 | 58B511D91A9E6C8500147676 /* CopyFiles */ = { 16 | isa = PBXCopyFilesBuildPhase; 17 | buildActionMask = 2147483647; 18 | dstPath = "include/$(PRODUCT_NAME)"; 19 | dstSubfolderSpec = 16; 20 | files = ( 21 | ); 22 | runOnlyForDeploymentPostprocessing = 0; 23 | }; 24 | /* End PBXCopyFilesBuildPhase section */ 25 | 26 | /* Begin PBXFileReference section */ 27 | 134814201AA4EA6300B7C361 /* libRNGalleryManager.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNGalleryManager.a; sourceTree = BUILT_PRODUCTS_DIR; }; 28 | 13BE3DEC1AC21097009241FE /* RNGalleryManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNGalleryManager.h; sourceTree = ""; }; 29 | 13BE3DED1AC21097009241FE /* RNGalleryManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNGalleryManager.m; sourceTree = ""; }; 30 | A9C119CF20149D3E00EAF9BD /* RNImageLoader.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNImageLoader.h; sourceTree = ""; }; 31 | A9C119D020149D3E00EAF9BD /* RNImageLoader.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNImageLoader.m; sourceTree = ""; }; 32 | /* End PBXFileReference section */ 33 | 34 | /* Begin PBXFrameworksBuildPhase section */ 35 | 58B511D81A9E6C8500147676 /* Frameworks */ = { 36 | isa = PBXFrameworksBuildPhase; 37 | buildActionMask = 2147483647; 38 | files = ( 39 | ); 40 | runOnlyForDeploymentPostprocessing = 0; 41 | }; 42 | /* End PBXFrameworksBuildPhase section */ 43 | 44 | /* Begin PBXGroup section */ 45 | 134814211AA4EA7D00B7C361 /* Products */ = { 46 | isa = PBXGroup; 47 | children = ( 48 | 134814201AA4EA6300B7C361 /* libRNGalleryManager.a */, 49 | ); 50 | name = Products; 51 | sourceTree = ""; 52 | }; 53 | 58B511D21A9E6C8500147676 = { 54 | isa = PBXGroup; 55 | children = ( 56 | A9C119CF20149D3E00EAF9BD /* RNImageLoader.h */, 57 | A9C119D020149D3E00EAF9BD /* RNImageLoader.m */, 58 | A9C119C620149A9400EAF9BD /* Libraries */, 59 | 13BE3DEC1AC21097009241FE /* RNGalleryManager.h */, 60 | 13BE3DED1AC21097009241FE /* RNGalleryManager.m */, 61 | 134814211AA4EA7D00B7C361 /* Products */, 62 | A9C119CD20149AD000EAF9BD /* Frameworks */, 63 | ); 64 | indentWidth = 2; 65 | sourceTree = ""; 66 | tabWidth = 2; 67 | usesTabs = 0; 68 | }; 69 | A9C119C620149A9400EAF9BD /* Libraries */ = { 70 | isa = PBXGroup; 71 | children = ( 72 | ); 73 | name = Libraries; 74 | sourceTree = ""; 75 | }; 76 | A9C119CD20149AD000EAF9BD /* Frameworks */ = { 77 | isa = PBXGroup; 78 | children = ( 79 | ); 80 | name = Frameworks; 81 | sourceTree = ""; 82 | }; 83 | /* End PBXGroup section */ 84 | 85 | /* Begin PBXNativeTarget section */ 86 | 58B511DA1A9E6C8500147676 /* RNGalleryManager */ = { 87 | isa = PBXNativeTarget; 88 | buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNGalleryManager" */; 89 | buildPhases = ( 90 | 58B511D71A9E6C8500147676 /* Sources */, 91 | 58B511D81A9E6C8500147676 /* Frameworks */, 92 | 58B511D91A9E6C8500147676 /* CopyFiles */, 93 | ); 94 | buildRules = ( 95 | ); 96 | dependencies = ( 97 | ); 98 | name = RNGalleryManager; 99 | productName = RCTDataManager; 100 | productReference = 134814201AA4EA6300B7C361 /* libRNGalleryManager.a */; 101 | productType = "com.apple.product-type.library.static"; 102 | }; 103 | /* End PBXNativeTarget section */ 104 | 105 | /* Begin PBXProject section */ 106 | 58B511D31A9E6C8500147676 /* Project object */ = { 107 | isa = PBXProject; 108 | attributes = { 109 | LastUpgradeCheck = 0610; 110 | ORGANIZATIONNAME = Facebook; 111 | TargetAttributes = { 112 | 58B511DA1A9E6C8500147676 = { 113 | CreatedOnToolsVersion = 6.1.1; 114 | }; 115 | }; 116 | }; 117 | buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNGalleryManager" */; 118 | compatibilityVersion = "Xcode 3.2"; 119 | developmentRegion = English; 120 | hasScannedForEncodings = 0; 121 | knownRegions = ( 122 | en, 123 | ); 124 | mainGroup = 58B511D21A9E6C8500147676; 125 | productRefGroup = 58B511D21A9E6C8500147676; 126 | projectDirPath = ""; 127 | projectRoot = ""; 128 | targets = ( 129 | 58B511DA1A9E6C8500147676 /* RNGalleryManager */, 130 | ); 131 | }; 132 | /* End PBXProject section */ 133 | 134 | /* Begin PBXSourcesBuildPhase section */ 135 | 58B511D71A9E6C8500147676 /* Sources */ = { 136 | isa = PBXSourcesBuildPhase; 137 | buildActionMask = 2147483647; 138 | files = ( 139 | A9C119D120149D3E00EAF9BD /* RNImageLoader.m in Sources */, 140 | 13BE3DEE1AC21097009241FE /* RNGalleryManager.m in Sources */, 141 | ); 142 | runOnlyForDeploymentPostprocessing = 0; 143 | }; 144 | /* End PBXSourcesBuildPhase section */ 145 | 146 | /* Begin XCBuildConfiguration section */ 147 | 58B511ED1A9E6C8500147676 /* Debug */ = { 148 | isa = XCBuildConfiguration; 149 | buildSettings = { 150 | ALWAYS_SEARCH_USER_PATHS = NO; 151 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 152 | CLANG_CXX_LIBRARY = "libc++"; 153 | CLANG_ENABLE_MODULES = YES; 154 | CLANG_ENABLE_OBJC_ARC = YES; 155 | CLANG_WARN_BOOL_CONVERSION = YES; 156 | CLANG_WARN_CONSTANT_CONVERSION = YES; 157 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 158 | CLANG_WARN_EMPTY_BODY = YES; 159 | CLANG_WARN_ENUM_CONVERSION = YES; 160 | CLANG_WARN_INT_CONVERSION = YES; 161 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 162 | CLANG_WARN_UNREACHABLE_CODE = YES; 163 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 164 | COPY_PHASE_STRIP = NO; 165 | ENABLE_STRICT_OBJC_MSGSEND = YES; 166 | GCC_C_LANGUAGE_STANDARD = gnu99; 167 | GCC_DYNAMIC_NO_PIC = NO; 168 | GCC_OPTIMIZATION_LEVEL = 0; 169 | GCC_PREPROCESSOR_DEFINITIONS = ( 170 | "DEBUG=1", 171 | "$(inherited)", 172 | ); 173 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 174 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 175 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 176 | GCC_WARN_UNDECLARED_SELECTOR = YES; 177 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 178 | GCC_WARN_UNUSED_FUNCTION = YES; 179 | GCC_WARN_UNUSED_VARIABLE = YES; 180 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 181 | MTL_ENABLE_DEBUG_INFO = YES; 182 | ONLY_ACTIVE_ARCH = YES; 183 | SDKROOT = iphoneos; 184 | }; 185 | name = Debug; 186 | }; 187 | 58B511EE1A9E6C8500147676 /* Release */ = { 188 | isa = XCBuildConfiguration; 189 | buildSettings = { 190 | ALWAYS_SEARCH_USER_PATHS = NO; 191 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 192 | CLANG_CXX_LIBRARY = "libc++"; 193 | CLANG_ENABLE_MODULES = YES; 194 | CLANG_ENABLE_OBJC_ARC = YES; 195 | CLANG_WARN_BOOL_CONVERSION = YES; 196 | CLANG_WARN_CONSTANT_CONVERSION = YES; 197 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 198 | CLANG_WARN_EMPTY_BODY = YES; 199 | CLANG_WARN_ENUM_CONVERSION = YES; 200 | CLANG_WARN_INT_CONVERSION = YES; 201 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 202 | CLANG_WARN_UNREACHABLE_CODE = YES; 203 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 204 | COPY_PHASE_STRIP = YES; 205 | ENABLE_NS_ASSERTIONS = NO; 206 | ENABLE_STRICT_OBJC_MSGSEND = YES; 207 | GCC_C_LANGUAGE_STANDARD = gnu99; 208 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 209 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 210 | GCC_WARN_UNDECLARED_SELECTOR = YES; 211 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 212 | GCC_WARN_UNUSED_FUNCTION = YES; 213 | GCC_WARN_UNUSED_VARIABLE = YES; 214 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 215 | MTL_ENABLE_DEBUG_INFO = NO; 216 | SDKROOT = iphoneos; 217 | VALIDATE_PRODUCT = YES; 218 | }; 219 | name = Release; 220 | }; 221 | 58B511F01A9E6C8500147676 /* Debug */ = { 222 | isa = XCBuildConfiguration; 223 | buildSettings = { 224 | HEADER_SEARCH_PATHS = ( 225 | "$(inherited)", 226 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 227 | "$(SRCROOT)/../../React/**", 228 | "$(SRCROOT)/../../node_modules/react-native/React/**", 229 | ); 230 | LIBRARY_SEARCH_PATHS = "$(inherited)"; 231 | OTHER_LDFLAGS = "-ObjC"; 232 | PRODUCT_NAME = RNGalleryManager; 233 | SKIP_INSTALL = YES; 234 | }; 235 | name = Debug; 236 | }; 237 | 58B511F11A9E6C8500147676 /* Release */ = { 238 | isa = XCBuildConfiguration; 239 | buildSettings = { 240 | HEADER_SEARCH_PATHS = ( 241 | "$(inherited)", 242 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 243 | "$(SRCROOT)/../../React/**", 244 | ); 245 | LIBRARY_SEARCH_PATHS = "$(inherited)"; 246 | OTHER_LDFLAGS = "-ObjC"; 247 | PRODUCT_NAME = RNGalleryManager; 248 | SKIP_INSTALL = YES; 249 | }; 250 | name = Release; 251 | }; 252 | /* End XCBuildConfiguration section */ 253 | 254 | /* Begin XCConfigurationList section */ 255 | 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNGalleryManager" */ = { 256 | isa = XCConfigurationList; 257 | buildConfigurations = ( 258 | 58B511ED1A9E6C8500147676 /* Debug */, 259 | 58B511EE1A9E6C8500147676 /* Release */, 260 | ); 261 | defaultConfigurationIsVisible = 0; 262 | defaultConfigurationName = Release; 263 | }; 264 | 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNGalleryManager" */ = { 265 | isa = XCConfigurationList; 266 | buildConfigurations = ( 267 | 58B511F01A9E6C8500147676 /* Debug */, 268 | 58B511F11A9E6C8500147676 /* Release */, 269 | ); 270 | defaultConfigurationIsVisible = 0; 271 | defaultConfigurationName = Release; 272 | }; 273 | /* End XCConfigurationList section */ 274 | }; 275 | rootObject = 58B511D31A9E6C8500147676 /* Project object */; 276 | } 277 | -------------------------------------------------------------------------------- /ios/RNGalleryManager.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/RNGalleryManager.xcodeproj/project.xcworkspace/xcuserdata/pentarex.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pentarex/react-native-gallery-manager/d09fcf2cf63fbbcbac76f9b287d5652200ff203a/ios/RNGalleryManager.xcodeproj/project.xcworkspace/xcuserdata/pentarex.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /ios/RNGalleryManager.xcodeproj/xcuserdata/pentarex.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | RNGalleryManager.xcscheme 8 | 9 | orderHint 10 | 38 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /ios/RNImageLoader.h: -------------------------------------------------------------------------------- 1 | // 2 | // RNImageLoader.h 3 | // RNGalleryManager 4 | // 5 | // Created by Hristo Hristov on 21.01.18. 6 | // Copyright © 2018 Facebook. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface RNImageLoader : NSObject 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /ios/RNImageLoader.m: -------------------------------------------------------------------------------- 1 | // 2 | // RNImageLoader.m 3 | // RNGalleryManager 4 | // 5 | // Created by Hristo Hristov on 21.01.18. 6 | // Copyright © 2018 Facebook. All rights reserved. 7 | // 8 | 9 | /** 10 | * Copyright (c) 2015-present, Facebook, Inc. 11 | * All rights reserved. 12 | * 13 | * This source code is licensed under the BSD-style license found in the 14 | * LICENSE file in the root directory of this source tree. An additional grant 15 | * of patent rights can be found in the PATENTS file in the same directory. 16 | */ 17 | 18 | #import "RNImageLoader.h" 19 | #import 20 | 21 | @implementation RNImageLoader 22 | 23 | RCT_EXPORT_MODULE() 24 | 25 | @synthesize bridge = _bridge; 26 | 27 | #pragma mark - RCTImageLoader 28 | 29 | - (BOOL)canLoadImageURL:(NSURL *)requestURL { 30 | 31 | if (![PHAsset class]) { 32 | return NO; 33 | } 34 | return [requestURL.scheme caseInsensitiveCompare:@"assets-library"] == NSOrderedSame || 35 | [requestURL.scheme caseInsensitiveCompare:@"lowq-assets-library"] == NSOrderedSame; 36 | 37 | } 38 | 39 | - (RCTImageLoaderCancellationBlock)loadImageForURL:(NSURL *)imageURL size:(CGSize)size scale:(CGFloat)scale resizeMode:(RCTResizeMode)resizeMode progressHandler:(RCTImageLoaderProgressBlock)progressHandler partialLoadHandler:(RCTImageLoaderPartialLoadBlock)partialLoadHandler completionHandler:(RCTImageLoaderCompletionBlock)completionHandler { 40 | NSString *assetID = @""; 41 | PHFetchResult *results; 42 | Boolean isLowQuality = NO; 43 | if (!imageURL) { 44 | completionHandler(RCTErrorWithMessage(@"Cannot load a photo library asset with no URL"), nil); 45 | return ^{}; 46 | } else if ([imageURL.scheme caseInsensitiveCompare:@"assets-library"] == NSOrderedSame) { 47 | assetID = [imageURL absoluteString]; 48 | results = [PHAsset fetchAssetsWithALAssetURLs:@[imageURL] options:nil]; 49 | isLowQuality = NO; 50 | } else { 51 | assetID = [[imageURL absoluteString] stringByReplacingOccurrencesOfString:@"lowq-assets-library" 52 | withString:@"assets-library"]; 53 | NSURL *url = [[NSURL alloc] initWithString:assetID]; 54 | results = [PHAsset fetchAssetsWithALAssetURLs:@[url] options:nil]; 55 | isLowQuality = YES; 56 | } 57 | if (results.count == 0) { 58 | NSString *errorText = [NSString stringWithFormat:@"Failed to fetch PHAsset with local identifier %@ with no error message.", assetID]; 59 | completionHandler(RCTErrorWithMessage(errorText), nil); 60 | return ^{}; 61 | } 62 | 63 | PHAsset *asset = [results firstObject]; 64 | PHImageRequestOptions *imageOptions = [PHImageRequestOptions new]; 65 | 66 | // Allow PhotoKit to fetch images from iCloud 67 | imageOptions.networkAccessAllowed = YES; 68 | 69 | if (progressHandler) { 70 | imageOptions.progressHandler = ^(double progress, NSError *error, BOOL *stop, NSDictionary *info) { 71 | static const double multiplier = 1e6; 72 | progressHandler(progress * multiplier, multiplier); 73 | }; 74 | } 75 | 76 | // Note: PhotoKit defaults to a deliveryMode of PHImageRequestOptionsDeliveryModeOpportunistic 77 | // which means it may call back multiple times - we probably don't want that 78 | if (isLowQuality) { 79 | imageOptions.deliveryMode = PHImageRequestOptionsDeliveryModeFastFormat; 80 | } else { 81 | imageOptions.deliveryMode = PHImageRequestOptionsDeliveryModeHighQualityFormat; 82 | } 83 | 84 | BOOL useMaximumSize = CGSizeEqualToSize(size, CGSizeZero); 85 | CGSize targetSize; 86 | if (useMaximumSize) { 87 | targetSize = PHImageManagerMaximumSize; 88 | imageOptions.resizeMode = PHImageRequestOptionsResizeModeNone; 89 | } else { 90 | targetSize = CGSizeApplyAffineTransform(size, CGAffineTransformMakeScale(scale, scale)); 91 | imageOptions.resizeMode = PHImageRequestOptionsResizeModeFast; 92 | } 93 | 94 | PHImageContentMode contentMode = PHImageContentModeAspectFill; 95 | if (resizeMode == RCTResizeModeContain) { 96 | contentMode = PHImageContentModeAspectFit; 97 | } 98 | 99 | PHImageRequestID requestID = 100 | [[PHImageManager defaultManager] requestImageForAsset:asset 101 | targetSize:targetSize 102 | contentMode:contentMode 103 | options:imageOptions 104 | resultHandler:^(UIImage *result, NSDictionary *info) { 105 | if (result) { 106 | completionHandler(nil, result); 107 | } else { 108 | completionHandler(info[PHImageErrorKey], nil); 109 | } 110 | }]; 111 | 112 | return ^{ 113 | [[PHImageManager defaultManager] cancelImageRequest:requestID]; 114 | }; 115 | } 116 | - (float)loaderPriority { 117 | return 5; 118 | } 119 | @end 120 | 121 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-gallery-manager", 3 | "version": "1.0.3", 4 | "lockfileVersion": 1 5 | } 6 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-gallery-manager", 3 | "version": "1.0.9", 4 | "description": "List Gallery content from React-Native", 5 | "main": "index.js", 6 | "homepage": "https://github.com/pentarex/react-native-gallery-manager", 7 | "scripts": { 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "keywords": [ 11 | "photos", 12 | "videos", 13 | "images", 14 | "gallery", 15 | "icloud", 16 | "phasset", 17 | "react-native" 18 | ], 19 | "nativePackage": true, 20 | "author": "Hristo Hristov", 21 | "license": "MIT", 22 | "repository": { 23 | "type": "git", 24 | "url": "https://github.com/pentarex/react-native-gallery-manager.git" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /react-native-gallery-manager.podspec: -------------------------------------------------------------------------------- 1 | require 'json' 2 | 3 | package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) 4 | 5 | Pod::Spec.new do |s| 6 | s.name = package['name'] 7 | s.version = package['version'] 8 | s.summary = package['description'] 9 | s.license = package['license'] 10 | 11 | s.authors = package['author'] 12 | s.homepage = package['homepage'] 13 | s.platform = :ios, "9.0" 14 | 15 | s.source = { :git => "https://github.com/pentarex/react-native-gallery-manager.git", :tag => "v#{s.version}" } 16 | s.source_files = "ios/**/*.{h,m}" 17 | 18 | s.dependency 'React' 19 | end --------------------------------------------------------------------------------