hybrid-navigation 2.11.1 → 2.11.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/android/build.gradle
CHANGED
|
@@ -33,5 +33,5 @@ dependencies {
|
|
|
33
33
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
34
34
|
implementation 'com.facebook.react:react-native:+'
|
|
35
35
|
// api project(':navigation')
|
|
36
|
-
api 'io.github.listenzz:AndroidNavigation:12.5.
|
|
36
|
+
api 'io.github.listenzz:AndroidNavigation:12.5.3'
|
|
37
37
|
}
|
|
@@ -6,7 +6,6 @@ import static com.reactnative.hybridnavigation.Constants.ARG_PROPS;
|
|
|
6
6
|
import static com.reactnative.hybridnavigation.Constants.ARG_SCENE_ID;
|
|
7
7
|
|
|
8
8
|
import android.graphics.Color;
|
|
9
|
-
import android.graphics.drawable.ColorDrawable;
|
|
10
9
|
import android.os.Bundle;
|
|
11
10
|
import android.view.View;
|
|
12
11
|
|
|
@@ -89,35 +88,33 @@ public class HybridFragment extends AwesomeFragment {
|
|
|
89
88
|
protected void onCustomStyle(@NonNull Style style) {
|
|
90
89
|
super.onCustomStyle(style);
|
|
91
90
|
garden = new Garden(this, style);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
@Override
|
|
95
|
-
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
|
|
96
|
-
super.onViewCreated(view, savedInstanceState);
|
|
97
|
-
garden.setupToolbar();
|
|
98
91
|
if (getPresentationStyle() == PresentationStyle.OverFullScreen) {
|
|
99
|
-
|
|
92
|
+
setBackgroundForModal(style);
|
|
100
93
|
}
|
|
101
94
|
}
|
|
102
95
|
|
|
103
|
-
private void
|
|
96
|
+
private void setBackgroundForModal(@NonNull Style style) {
|
|
104
97
|
if (forceTransparentDialogWindow()) {
|
|
105
|
-
|
|
98
|
+
style.setScreenBackgroundColor(Color.TRANSPARENT);
|
|
106
99
|
return;
|
|
107
100
|
}
|
|
108
101
|
int color = mStyle.getScreenBackgroundColor();
|
|
109
|
-
if (Color.alpha(color)
|
|
110
|
-
|
|
111
|
-
} else {
|
|
112
|
-
view.setBackground(new ColorDrawable(Color.parseColor("#77000000")));
|
|
102
|
+
if (Color.alpha(color) == 255) {
|
|
103
|
+
style.setScreenBackgroundColor(Color.parseColor("#77000000"));
|
|
113
104
|
}
|
|
114
105
|
}
|
|
115
106
|
|
|
107
|
+
@Override
|
|
108
|
+
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
|
|
109
|
+
super.onViewCreated(view, savedInstanceState);
|
|
110
|
+
garden.setupToolbar();
|
|
111
|
+
}
|
|
112
|
+
|
|
116
113
|
@NonNull
|
|
117
114
|
@Override
|
|
118
115
|
protected BarStyle preferredStatusBarStyle() {
|
|
119
|
-
if (forceTransparentDialogWindow()
|
|
120
|
-
return
|
|
116
|
+
if (forceTransparentDialogWindow()) {
|
|
117
|
+
return SystemUI.activityNavigationBarStyle(requireActivity());
|
|
121
118
|
}
|
|
122
119
|
|
|
123
120
|
if (getPresentationStyle() == PresentationStyle.OverFullScreen) {
|
|
@@ -332,12 +332,5 @@ public class ReactFragment extends HybridFragment implements ReactRootViewHolder
|
|
|
332
332
|
}
|
|
333
333
|
getActivity().supportStartPostponedEnterTransition();
|
|
334
334
|
}
|
|
335
|
-
|
|
336
|
-
@Override
|
|
337
|
-
protected int preferredNavigationBarColor() {
|
|
338
|
-
if (mStyle.getNavigationBarColor() == Style.INVALID_COLOR) {
|
|
339
|
-
return mStyle.getScreenBackgroundColor();
|
|
340
|
-
}
|
|
341
|
-
return mStyle.getNavigationBarColor();
|
|
342
|
-
}
|
|
335
|
+
|
|
343
336
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hybrid-navigation",
|
|
3
3
|
"description": "React Native Navigation that supports seamless navigation between Native and React.",
|
|
4
|
-
"version": "2.11.
|
|
4
|
+
"version": "2.11.2",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
7
7
|
"react-native": "src/index",
|