瀏覽代碼

fixed android getLaunchArgs

Daniel Zlotin 7 年之前
父節點
當前提交
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
 }
779
 }
780
 
780
 
781
 async function getLaunchArgs() {
781
 async function getLaunchArgs() {
782
-  return await NativeReactModule.getLaunchArgs();
782
+  return await newPlatformSpecific.getLaunchArgs();
783
 }
783
 }
784
 
784
 
785
 export default {
785
 export default {

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

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