Fix bug when adding multiple photos. Added RN image resizer

This commit is contained in:
John Lyon-Smith
2018-05-14 11:09:07 -07:00
parent eda43b0869
commit fdd5f67d90
12 changed files with 30 additions and 14 deletions

View File

@@ -167,6 +167,7 @@ dependencies {
compile project(':react-native-maps')
compile project(':react-native-image-picker')
compile project(':react-native-fs')
compile project(':react-native-image-resizer')
}
// Run this once to be able to run the application with BUCK

View File

@@ -19,6 +19,8 @@ import com.imagepicker.ImagePickerPackage;
import com.rnfs.RNFSPackage;
import fr.bamlab.rnimageresizer.ImageResizerPackage;
public class MainApplication extends Application implements ReactApplication {
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
@@ -34,7 +36,8 @@ public class MainApplication extends Application implements ReactApplication {
new ReactViroPackage(ReactViroPackage.ViroPlatform.GVR),
new MapsPackage(),
new ImagePickerPackage(),
new RNFSPackage()
new RNFSPackage(),
new ImageResizerPackage()
);
}