Added RNFS and refactor image upload to use it

This commit is contained in:
John Lyon-Smith
2018-05-14 10:38:38 -07:00
parent 6fae5ef5d6
commit eda43b0869
16 changed files with 174 additions and 109 deletions

View File

@@ -166,6 +166,7 @@ dependencies {
compile 'com.amazonaws:aws-android-sdk-cognitoidentityprovider:2.2.+'
compile project(':react-native-maps')
compile project(':react-native-image-picker')
compile project(':react-native-fs')
}
// Run this once to be able to run the application with BUCK

View File

@@ -17,6 +17,8 @@ import com.airbnb.android.react.maps.MapsPackage;
import com.imagepicker.ImagePickerPackage;
import com.rnfs.RNFSPackage;
public class MainApplication extends Application implements ReactApplication {
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
@@ -31,7 +33,8 @@ public class MainApplication extends Application implements ReactApplication {
new MainReactPackage(),
new ReactViroPackage(ReactViroPackage.ViroPlatform.GVR),
new MapsPackage(),
new ImagePickerPackage()
new ImagePickerPackage(),
new RNFSPackage()
);
}