Kaynağa Gözat

fixed android getLaunchArgs

Daniel Zlotin 6 yıl önce
ebeveyn
işleme
8c21b85bb4

+ 1
- 1
src/deprecated/platformSpecificDeprecated.android.js Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

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