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.
- package/lib/android/app/src/main/java/com/reactnativenavigation/react/JsDevReloadHandler.java +6 -1
- package/lib/android/app/src/main/java/com/reactnativenavigation/react/NavigationModule.java +3 -1
- package/lib/dist/src/interfaces/Options.d.ts +1 -1
- package/lib/src/interfaces/Options.ts +3 -0
- package/package.json +1 -1
package/lib/android/app/src/main/java/com/reactnativenavigation/react/JsDevReloadHandler.java
CHANGED
|
@@ -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.
|
|
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(() ->
|
|
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 = {
|