Browse Source

fixed android getLaunchArgs

Daniel Zlotin 7 years ago
parent
commit
8c21b85bb4

+ 1
- 1
src/deprecated/platformSpecificDeprecated.android.js View File

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 View File

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
 };