diff --git a/android/app/build.gradle b/android/app/build.gradle index 9b56acb..2511b9e 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -127,6 +127,7 @@ android { } dependencies { + compile project(':react-native-image-resizer') compile project(':react-native-facebook-login') compile project(':react-native-maps') compile project(':react-native-vector-icons') diff --git a/android/app/src/main/java/com/aretherecookies/MainApplication.java b/android/app/src/main/java/com/aretherecookies/MainApplication.java index 10ce5af..694d0e7 100644 --- a/android/app/src/main/java/com/aretherecookies/MainApplication.java +++ b/android/app/src/main/java/com/aretherecookies/MainApplication.java @@ -3,6 +3,7 @@ package com.aretherecookies; import android.app.Application; import com.facebook.react.ReactApplication; +import fr.bamlab.rnimageresizer.ImageResizerPackage; import com.airbnb.android.react.maps.MapsPackage; import com.oblador.vectoricons.VectorIconsPackage; import com.imagepicker.ImagePickerPackage; @@ -28,6 +29,7 @@ public class MainApplication extends Application implements ReactApplication { protected List getPackages() { return Arrays.asList( new MainReactPackage(), + new ImageResizerPackage(), new MapsPackage(), new VectorIconsPackage(), new ImagePickerPackage(), diff --git a/android/settings.gradle b/android/settings.gradle index 8ca0aed..7ade660 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -1,4 +1,6 @@ rootProject.name = 'AreThereCookies' +include ':react-native-image-resizer' +project(':react-native-image-resizer').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-resizer/android') include ':react-native-facebook-login' project(':react-native-facebook-login').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-facebook-login/android') include ':react-native-maps' diff --git a/ios/AreThereCookies.xcodeproj/project.pbxproj b/ios/AreThereCookies.xcodeproj/project.pbxproj index 7cdd4f9..3c58720 100644 --- a/ios/AreThereCookies.xcodeproj/project.pbxproj +++ b/ios/AreThereCookies.xcodeproj/project.pbxproj @@ -49,6 +49,7 @@ 761A158B50BE4290B39D8637 /* SimpleLineIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 28807711BA664F9EB49B3B76 /* SimpleLineIcons.ttf */; }; B861BE92B155457990C8500E /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D53B3F694EB44AC8B196FE53 /* Zocial.ttf */; }; 58AA5BD96D1F473CAF1D0297 /* libAirMaps.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 484774914A724BB18F8CBAC7 /* libAirMaps.a */; }; + 1242B1F0F0FB4315B5CADEC5 /* libRCTImageResizer.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1E3D55C0169946DB80AA27E5 /* libRCTImageResizer.a */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -286,6 +287,8 @@ D53B3F694EB44AC8B196FE53 /* Zocial.ttf */ = {isa = PBXFileReference; name = "Zocial.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Zocial.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; CA8120963AF94E0FB384289D /* AirMaps.xcodeproj */ = {isa = PBXFileReference; name = "AirMaps.xcodeproj"; path = "../node_modules/react-native-maps/lib/ios/AirMaps.xcodeproj"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; }; 484774914A724BB18F8CBAC7 /* libAirMaps.a */ = {isa = PBXFileReference; name = "libAirMaps.a"; path = "libAirMaps.a"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; }; + AD5CC2AA6AA04DC680DF530F /* RCTImageResizer.xcodeproj */ = {isa = PBXFileReference; name = "RCTImageResizer.xcodeproj"; path = "../node_modules/react-native-image-resizer/ios/RCTImageResizer.xcodeproj"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; }; + 1E3D55C0169946DB80AA27E5 /* libRCTImageResizer.a */ = {isa = PBXFileReference; name = "libRCTImageResizer.a"; path = "libRCTImageResizer.a"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -316,6 +319,7 @@ 6D42E5626E694AD8B2E1F392 /* libRNImagePicker.a in Frameworks */, 0BB615C49CCD433DA593C478 /* libRNVectorIcons.a in Frameworks */, 58AA5BD96D1F473CAF1D0297 /* libAirMaps.a in Frameworks */, + 1242B1F0F0FB4315B5CADEC5 /* libRCTImageResizer.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -486,6 +490,7 @@ 1CDCCD20971D43E3A647B5AA /* RNImagePicker.xcodeproj */, ABBDD4481F9A4A879DC2DA9B /* RNVectorIcons.xcodeproj */, CA8120963AF94E0FB384289D /* AirMaps.xcodeproj */, + AD5CC2AA6AA04DC680DF530F /* RCTImageResizer.xcodeproj */, ); name = Libraries; sourceTree = ""; @@ -1046,6 +1051,7 @@ "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", + "\"$(SRCROOT)/$(TARGET_NAME)\"", ); HEADER_SEARCH_PATHS = ( "$(inherited)", @@ -1053,6 +1059,7 @@ "$(SRCROOT)/../node_modules/react-native-image-picker/ios", "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", "$(SRCROOT)/../node_modules/react-native-maps/lib/ios/**", + "$(SRCROOT)/../node_modules/react-native-image-resizer/ios/RCTImageResizer", ); }; name = Debug; @@ -1077,6 +1084,7 @@ "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", + "\"$(SRCROOT)/$(TARGET_NAME)\"", ); HEADER_SEARCH_PATHS = ( "$(inherited)", @@ -1084,6 +1092,7 @@ "$(SRCROOT)/../node_modules/react-native-image-picker/ios", "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", "$(SRCROOT)/../node_modules/react-native-maps/lib/ios/**", + "$(SRCROOT)/../node_modules/react-native-image-resizer/ios/RCTImageResizer", ); }; name = Release; @@ -1109,6 +1118,7 @@ "$(SRCROOT)/../node_modules/react-native-image-picker/ios", "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", "$(SRCROOT)/../node_modules/react-native-maps/lib/ios/**", + "$(SRCROOT)/../node_modules/react-native-image-resizer/ios/RCTImageResizer", ); }; name = Debug; @@ -1133,6 +1143,7 @@ "$(SRCROOT)/../node_modules/react-native-image-picker/ios", "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", "$(SRCROOT)/../node_modules/react-native-maps/lib/ios/**", + "$(SRCROOT)/../node_modules/react-native-image-resizer/ios/RCTImageResizer", ); }; name = Release; @@ -1166,6 +1177,7 @@ "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", + "\"$(SRCROOT)/$(TARGET_NAME)\"", ); HEADER_SEARCH_PATHS = ( "$(inherited)", @@ -1173,6 +1185,7 @@ "$(SRCROOT)/../node_modules/react-native-image-picker/ios", "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", "$(SRCROOT)/../node_modules/react-native-maps/lib/ios/**", + "$(SRCROOT)/../node_modules/react-native-image-resizer/ios/RCTImageResizer", ); }; name = Debug; @@ -1206,6 +1219,7 @@ "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", + "\"$(SRCROOT)/$(TARGET_NAME)\"", ); HEADER_SEARCH_PATHS = ( "$(inherited)", @@ -1213,6 +1227,7 @@ "$(SRCROOT)/../node_modules/react-native-image-picker/ios", "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", "$(SRCROOT)/../node_modules/react-native-maps/lib/ios/**", + "$(SRCROOT)/../node_modules/react-native-image-resizer/ios/RCTImageResizer", ); }; name = Release; @@ -1241,6 +1256,7 @@ "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", + "\"$(SRCROOT)/$(TARGET_NAME)\"", ); }; name = Debug; @@ -1269,6 +1285,7 @@ "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", + "\"$(SRCROOT)/$(TARGET_NAME)\"", ); }; name = Release; diff --git a/package.json b/package.json index 74ffd32..2a32136 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "react-native-facebook-login": "^1.6.0", "react-native-google-places": "^2.1.0", "react-native-image-picker": "^0.26.3", + "react-native-image-resizer": "^1.0.0", "react-native-loading-spinner-overlay": "^0.5.2", "react-native-looped-carousel": "^0.1.5", "react-native-maps": "0.15.1", diff --git a/yarn.lock b/yarn.lock index 85f2012..62226b7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3721,6 +3721,10 @@ react-native-image-picker@^0.26.3: version "0.26.7" resolved "https://registry.yarnpkg.com/react-native-image-picker/-/react-native-image-picker-0.26.7.tgz#ad2ee957f7f6cc01396893ea03d84cb2adb2e376" +react-native-image-resizer@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/react-native-image-resizer/-/react-native-image-resizer-1.0.0.tgz#d47e14943c37938e287fbd639e4db7ceb7fd8917" + react-native-loading-spinner-overlay@^0.5.2: version "0.5.2" resolved "https://registry.yarnpkg.com/react-native-loading-spinner-overlay/-/react-native-loading-spinner-overlay-0.5.2.tgz#b7bcd277476d596615fd7feee601789f9bdc7acc"