react-native-navigation 7.37.1 → 7.37.2-snapshot.1232
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 +2 -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 = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-navigation",
|
|
3
|
-
"version": "7.37.
|
|
3
|
+
"version": "7.37.2-snapshot.1232",
|
|
4
4
|
"description": "React Native Navigation - truly native navigation for iOS and Android",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"nativePackage": true,
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"main": "lib/dist/src/index.js",
|
|
23
23
|
"typings": "lib/dist/src/index.d.ts",
|
|
24
24
|
"scripts": {
|
|
25
|
+
"postinstall": "node scripts/postinstall.js",
|
|
25
26
|
"build": "node ./scripts/build",
|
|
26
27
|
"watch": "node ./scripts/watch",
|
|
27
28
|
"xcode": "open playground/ios/playground.xcworkspace",
|