瀏覽代碼

fixed android getLaunchArgs

Daniel Zlotin 6 年之前
父節點
當前提交
8c21b85bb4
共有 2 個文件被更改,包括 7 次插入2 次删除
  1. 1
    1
      src/deprecated/platformSpecificDeprecated.android.js
  2. 6
    1
      src/platformSpecific.android.js

+ 1
- 1
src/deprecated/platformSpecificDeprecated.android.js 查看文件

@@ -779,7 +779,7 @@ async function getCurrentlyVisibleScreenId() {
779 779
 }
780 780
 
781 781
 async function getLaunchArgs() {
782
-  return await NativeReactModule.getLaunchArgs();
782
+  return await newPlatformSpecific.getLaunchArgs();
783 783
 }
784 784
 
785 785
 export default {

+ 6
- 1
src/platformSpecific.android.js 查看文件

@@ -189,6 +189,10 @@ async function getCurrentlyVisibleScreenId() {
189 189
   return await NativeReactModule.getCurrentlyVisibleScreenId();
190 190
 }
191 191
 
192
+async function getLaunchArgs() {
193
+  return await NativeReactModule.getLaunchArgs();
194
+}
195
+
192 196
 module.exports = {
193 197
   startApp,
194 198
   push,
@@ -225,5 +229,6 @@ module.exports = {
225 229
   setScreenStyle,
226 230
   isAppLaunched,
227 231
   isRootLaunched,
228
-  getCurrentlyVisibleScreenId
232
+  getCurrentlyVisibleScreenId,
233
+  getLaunchArgs
229 234
 };