Commit 926c16ad authored by YJ's avatar YJ
Browse files

fix: react-navigation and jetify to forward all this sheiße to androidX

parent 5d4285b7
......@@ -105,7 +105,7 @@ android {
defaultConfig {
applicationId "io.parity.signer"
minSdkVersion 16
minSdkVersion 26
missingDimensionStrategy 'react-native-camera', 'general'
targetSdkVersion 28
versionCode 2
......@@ -164,7 +164,8 @@ android {
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'com.facebook.react:react-native:0.60.2'
implementation 'com.facebook.react:react-native:0.60.3'
implementation project(':react-native-gesture-handler')
if (useIntlJsc) {
implementation 'org.webkit:android-jsc-intl:+'
......
package io.parity.signer;
import com.facebook.react.ReactActivity;
import com.facebook.react.ReactActivityDelegate;
import com.facebook.react.ReactRootView;
import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView;
import android.os.Bundle;
import android.view.WindowManager;
......@@ -21,4 +25,15 @@ public class MainActivity extends ReactActivity {
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE,
WindowManager.LayoutParams.FLAG_SECURE);
}
@Override
protected ReactActivityDelegate createReactActivityDelegate() {
return new ReactActivityDelegate(this, getMainComponentName()) {
@Override
protected ReactRootView createRootView() {
return new RNGestureHandlerEnabledRootView(MainActivity.this);
}
};
}
}
......@@ -8,6 +8,8 @@ import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
import com.facebook.soloader.SoLoader;
import com.swmansion.gesturehandler.react.RNGestureHandlerPackage;
import java.util.Arrays;
import java.util.List;
......@@ -23,7 +25,8 @@ public class MainApplication extends Application implements ReactApplication {
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new EthkeyBridgePackage()
new EthkeyBridgePackage(),
new RNGestureHandlerPackage()
);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment