react-native-navigation 7.30.0 → 7.30.1
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/viewcontrollers/stack/topbar/button/ButtonPresenter.kt +1 -1
- package/lib/android/app/src/main/java/com/reactnativenavigation/views/animations/BaseViewAnimator.kt +3 -3
- package/lib/android/app/src/main/java/com/reactnativenavigation/views/stack/topbar/titlebar/IconBackgroundDrawable.kt +1 -1
- package/package.json +2 -2
|
@@ -79,7 +79,7 @@ open class ButtonPresenter(private val context: Context, private val button: But
|
|
|
79
79
|
private fun applyAccessibilityLabel(menuItem: MenuItem) {
|
|
80
80
|
if (button.accessibilityLabel.hasValue()) {
|
|
81
81
|
if (button.component.hasValue()) {
|
|
82
|
-
menuItem.actionView
|
|
82
|
+
menuItem.actionView?.contentDescription = button.accessibilityLabel.get()
|
|
83
83
|
} else {
|
|
84
84
|
MenuItemCompat.setContentDescription(menuItem, button.accessibilityLabel.get())
|
|
85
85
|
}
|
package/lib/android/app/src/main/java/com/reactnativenavigation/views/animations/BaseViewAnimator.kt
CHANGED
|
@@ -43,17 +43,17 @@ open class BaseViewAnimator<T : View>(
|
|
|
43
43
|
private inner class AnimatorListener(private val startState: AnimationState, private val endVisibility: Int) : AnimatorListenerAdapter() {
|
|
44
44
|
var isCancelled = false
|
|
45
45
|
|
|
46
|
-
override fun onAnimationStart(animation: Animator
|
|
46
|
+
override fun onAnimationStart(animation: Animator) {
|
|
47
47
|
view.resetViewProperties()
|
|
48
48
|
view.visibility = View.VISIBLE
|
|
49
49
|
animationState = startState
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
override fun onAnimationCancel(animation: Animator
|
|
52
|
+
override fun onAnimationCancel(animation: Animator) {
|
|
53
53
|
isCancelled = true
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
override fun onAnimationEnd(animation: Animator
|
|
56
|
+
override fun onAnimationEnd(animation: Animator) {
|
|
57
57
|
if (!isCancelled) {
|
|
58
58
|
animationState = AnimationState.Idle
|
|
59
59
|
view.visibility = endVisibility
|
|
@@ -68,7 +68,7 @@ class IconBackgroundDrawable(
|
|
|
68
68
|
super.setBounds(r)
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
override fun onBoundsChange(bounds: Rect
|
|
71
|
+
override fun onBoundsChange(bounds: Rect) {
|
|
72
72
|
if (bounds != null) {
|
|
73
73
|
backgroundRect = Rect((bounds.width() - backgroundWidth) / 2,
|
|
74
74
|
(bounds.height() - backgroundHeight) / 2,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-navigation",
|
|
3
|
-
"version": "7.30.
|
|
3
|
+
"version": "7.30.1",
|
|
4
4
|
"description": "React Native Navigation - truly native navigation for iOS and Android",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"nativePackage": true,
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"pngjs": "^6.0.0",
|
|
106
106
|
"prettier": "2.1.2",
|
|
107
107
|
"react": "18.0.0",
|
|
108
|
-
"react-native": "0.69.
|
|
108
|
+
"react-native": "0.69.7",
|
|
109
109
|
"react-native-fast-image": "^8.3.4",
|
|
110
110
|
"react-native-gesture-handler": "^1.6.1",
|
|
111
111
|
"react-native-reanimated": "2.10.0",
|