react-native-navigation 8.8.2-snapshot.2427 → 8.8.2-snapshot.2429

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,10 @@ class LayoutDirectionApplier {
10
10
  val currentContext = root.view?.context ?: return
11
11
 
12
12
  if (options.layout.direction.hasValue()) {
13
- root.activity.window.decorView.layoutDirection = options.layout.direction.get()
13
+ val direction = options.layout.direction.get()
14
+ root.activity?.window?.decorView?.let { decor ->
15
+ decor.layoutDirection = direction
16
+ }
14
17
  I18nUtil.instance.allowRTL(currentContext, options.layout.direction.isRtl)
15
18
  I18nUtil.instance.forceRTL(currentContext, options.layout.direction.isRtl)
16
19
  }
@@ -137,6 +137,7 @@ public class Presenter {
137
137
  }
138
138
 
139
139
  private void setNavigationBarBackgroundColor(NavigationBarOptions navigationBar) {
140
+ if (activity == null) return;
140
141
  int defaultColor = SystemUiUtils.getDefaultNavBarColor();
141
142
  if (navigationBar.backgroundColor.canApplyValue()) {
142
143
  int color = navigationBar.backgroundColor.get(defaultColor);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-navigation",
3
- "version": "8.8.2-snapshot.2427",
3
+ "version": "8.8.2-snapshot.2429",
4
4
  "description": "React Native Navigation - truly native navigation for iOS and Android",
5
5
  "license": "MIT",
6
6
  "nativePackage": true,