chore: add screesn

This commit is contained in:
Kyle Fang
2019-05-12 09:55:42 +08:00
parent 82c3540117
commit ec55144e77
7 changed files with 78 additions and 4 deletions

View File

@@ -138,6 +138,7 @@ android {
}
dependencies {
implementation project(':react-native-screens')
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
implementation "com.facebook.react:react-native:+" // From node_modules

View File

@@ -3,6 +3,7 @@ package com.touchthroughviewissue;
import android.app.Application;
import com.facebook.react.ReactApplication;
import com.swmansion.rnscreens.RNScreensPackage;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
@@ -22,7 +23,8 @@ public class MainApplication extends Application implements ReactApplication {
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage()
new MainReactPackage(),
new RNScreensPackage()
);
}

View File

@@ -1,3 +1,5 @@
rootProject.name = 'touchThroughViewIssue'
include ':react-native-screens'
project(':react-native-screens').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-screens/android')
include ':app'