@norcy/react-native-toolkit 0.1.147 → 0.1.148
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,4 +39,10 @@ public abstract class BaseToolkitActivity extends ReactActivity {
|
|
39
39
|
protected Uri getAppLinkData() {
|
40
40
|
return getIntent().getData();
|
41
41
|
}
|
42
|
+
|
43
|
+
@Override
|
44
|
+
protected String getMainComponentName() {
|
45
|
+
BaseToolkitApplication app = (BaseToolkitApplication) getApplication();
|
46
|
+
return app.getMainComponentName();
|
47
|
+
}
|
42
48
|
}
|
@@ -27,6 +27,9 @@ public abstract class BaseToolkitApplication extends Application implements Reac
|
|
27
27
|
|
28
28
|
// 让子类提供友盟统计的 AppKey
|
29
29
|
protected abstract String getUmengAppKey();
|
30
|
+
|
31
|
+
// 让子类提供主组件名称
|
32
|
+
protected abstract String getMainComponentName();
|
30
33
|
|
31
34
|
protected ReactNativeHost createReactNativeHost() {
|
32
35
|
return new ReactNativeHost(this) {
|