fix WebView package

This commit is contained in:
Akinwale Ariwodola 2020-01-07 08:35:06 +01:00
parent 4bae7fdf94
commit 37f33e9943
5 changed files with 9 additions and 3 deletions

2
app

@ -1 +1 @@
Subproject commit 673d6dc0f5f9044405def32b3a4809472708c907
Subproject commit c47c7cd925293dfa4d7eb00bf4fd19b0a9003908

View file

@ -125,6 +125,7 @@ dependencies {
compile project(':react-native-reanimated')
compile project(':react-native-snackbar')
compile project(':react-native-video')
compile project(':react-native-webview')
compile project(':rn-fetch-blob')
{%- for aar in aars %}
compile(name: '{{ aar }}', ext: 'aar')

View file

@ -34,7 +34,7 @@ allprojects {
apply plugin: 'com.android.application'
project.ext.react = [
enableHermes: true,
enableHermes: false,
entryFile: "index.js"
]
@ -125,6 +125,7 @@ dependencies {
compile project(':react-native-reanimated')
compile project(':react-native-snackbar')
compile project(':react-native-video')
compile project(':react-native-webview')
compile project(':rn-fetch-blob')
{%- for aar in aars %}
compile(name: '{{ aar }}', ext: 'aar')

View file

@ -17,5 +17,7 @@ include ':react-native-snackbar'
project(':react-native-snackbar').projectDir = new File(rootProject.projectDir, './react/node_modules/react-native-snackbar/android')
include ':react-native-video'
project(':react-native-video').projectDir = new File(rootProject.projectDir, './react/node_modules/react-native-video/android-exoplayer')
include ':react-native-webview'
project(':react-native-webview').projectDir = new File(rootProject.projectDir, './react/node_modules/react-native-webview/android')
include ':rn-fetch-blob'
project(':rn-fetch-blob').projectDir = new File(rootProject.projectDir, './react/node_modules/rn-fetch-blob/android')

View file

@ -49,6 +49,7 @@ import com.facebook.react.ReactRootView;
import com.facebook.soloader.SoLoader;
import com.google.firebase.analytics.FirebaseAnalytics;
import com.reactnativecommunity.asyncstorage.AsyncStoragePackage;
import com.reactnativecommunity.webview.RNCWebViewPackage;
import com.rnfs.RNFSPackage;
import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView;
import com.swmansion.gesturehandler.react.RNGestureHandlerPackage;
@ -162,6 +163,7 @@ public class MainActivity extends FragmentActivity implements DefaultHardwareBac
.addPackage(new MainReactPackage())
.addPackage(new AsyncStoragePackage())
.addPackage(new FastImageViewPackage())
.addPackage(new RNCWebViewPackage())
.addPackage(new ReactVideoPackage())
.addPackage(new ReanimatedPackage())
.addPackage(new RNCameraPackage())