Просмотр исходного кода

Fix crash when calling dismissModal before app was launched (#2978)

closes #2966
Guy Carmeli 6 лет назад
Родитель
Сommit
79164efc1e
No account linked to committer's email address

+ 1
- 1
android/app/src/main/java/com/reactnativenavigation/params/parsers/ScreenParamsParser.java Просмотреть файл

@@ -59,7 +59,7 @@ public class ScreenParamsParser extends Parser {
59 59
         result.animateScreenTransitions = new AnimationParser(params).parse();
60 60
         result.sharedElementsTransitions = getSharedElementsTransitions(params);
61 61
 
62
-        result.animationType = params.getString(ANIMATION_TYPE, AppStyle.appStyle.screenAnimationType);
62
+        result.animationType = params.getString(ANIMATION_TYPE, AppStyle.appStyle == null ? "" : AppStyle.appStyle.screenAnimationType);
63 63
 
64 64
         return result;
65 65
     }