react-native-navigation 7.37.1 → 7.37.2

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.
@@ -7,6 +7,7 @@ import android.content.Intent;
7
7
  import android.content.IntentFilter;
8
8
  import android.view.KeyEvent;
9
9
  import android.widget.EditText;
10
+ import android.os.Build;
10
11
 
11
12
  import com.facebook.react.devsupport.interfaces.DevSupportManager;
12
13
  import com.reactnativenavigation.utils.UiUtils;
@@ -49,7 +50,11 @@ public class JsDevReloadHandler extends JsDevReloadHandlerFacade {
49
50
  }
50
51
 
51
52
  public void onActivityResumed(Activity activity) {
52
- activity.registerReceiver(reloadReceiver, new IntentFilter(RELOAD_BROADCAST));
53
+ if (Build.VERSION.SDK_INT >= 34 && activity.getApplicationInfo().targetSdkVersion >= 34) {
54
+ activity.registerReceiver(reloadReceiver, new IntentFilter(RELOAD_BROADCAST), Context.RECEIVER_EXPORTED);
55
+ } else {
56
+ activity.registerReceiver(reloadReceiver, new IntentFilter(RELOAD_BROADCAST));
57
+ }
53
58
  }
54
59
 
55
60
  public void onActivityPaused(Activity activity) {
@@ -59,7 +59,9 @@ public class NavigationModule extends ReactContextBaseJavaModule {
59
59
  @Override
60
60
  public void onHostPause() {
61
61
  super.onHostPause();
62
- UiUtils.runOnMainThread(() -> navigator().onHostPause());
62
+ UiUtils.runOnMainThread(() -> {
63
+ if (activity() != null) navigator().onHostPause();
64
+ });
63
65
  }
64
66
 
65
67
  @Override
@@ -4,7 +4,7 @@ declare type FontFamily = string;
4
4
  declare type FontStyle = 'normal' | 'italic';
5
5
  declare type FontWeightIOS = 'normal' | 'ultralight' | 'thin' | 'light' | 'regular' | 'medium' | 'semibold' | 'demibold' | 'extrabold' | 'ultrabold' | 'bold' | 'heavy' | 'black';
6
6
  declare type FontWeight = 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | FontWeightIOS;
7
- export declare type LayoutOrientation = 'portrait' | 'landscape' | 'sensor' | 'sensorLandscape' | 'sensorPortrait';
7
+ export declare type LayoutOrientation = 'all' | 'default' | 'portrait' | 'landscape' | 'upsideDown' | 'sensor' | 'sensorLandscape' | 'sensorPortrait';
8
8
  declare type AndroidDensityNumber = number;
9
9
  export declare type SystemItemIcon = 'done' | 'cancel' | 'edit' | 'save' | 'add' | 'flexibleSpace' | 'fixedSpace' | 'compose' | 'reply' | 'action' | 'organize' | 'bookmarks' | 'search' | 'refresh' | 'stop' | 'camera' | 'trash' | 'play' | 'pause' | 'rewind' | 'fastForward' | 'undo' | 'redo';
10
10
  export declare type Interpolation = {
@@ -34,8 +34,11 @@ type FontWeight =
34
34
  | '900'
35
35
  | FontWeightIOS;
36
36
  export type LayoutOrientation =
37
+ | 'all'
38
+ | 'default'
37
39
  | 'portrait'
38
40
  | 'landscape'
41
+ | 'upsideDown'
39
42
  | 'sensor'
40
43
  | 'sensorLandscape'
41
44
  | 'sensorPortrait';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-navigation",
3
- "version": "7.37.1",
3
+ "version": "7.37.2",
4
4
  "description": "React Native Navigation - truly native navigation for iOS and Android",
5
5
  "license": "MIT",
6
6
  "nativePackage": true,