Skip to content

Commit

Permalink
Library has compilation issues with Android 13 #7545 (#7558)
Browse files Browse the repository at this point in the history
* Fix for compilation issues on Android 13

* exclude react-native from mavenCentral

* Lock react-native version

* Bump react-native to 0.69.7

Co-authored-by: Yogev Ben David <[email protected]>
  • Loading branch information
ankitsingh08 and yogevbd authored Nov 7, 2022
1 parent 453c65a commit afbe27c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ open class ButtonPresenter(private val context: Context, private val button: But
private fun applyAccessibilityLabel(menuItem: MenuItem) {
if (button.accessibilityLabel.hasValue()) {
if (button.component.hasValue()) {
menuItem.actionView.contentDescription = button.accessibilityLabel.get()
menuItem.actionView?.contentDescription = button.accessibilityLabel.get()
} else {
MenuItemCompat.setContentDescription(menuItem, button.accessibilityLabel.get())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@ open class BaseViewAnimator<T : View>(
private inner class AnimatorListener(private val startState: AnimationState, private val endVisibility: Int) : AnimatorListenerAdapter() {
var isCancelled = false

override fun onAnimationStart(animation: Animator?) {
override fun onAnimationStart(animation: Animator) {
view.resetViewProperties()
view.visibility = View.VISIBLE
animationState = startState
}

override fun onAnimationCancel(animation: Animator?) {
override fun onAnimationCancel(animation: Animator) {
isCancelled = true
}

override fun onAnimationEnd(animation: Animator?) {
override fun onAnimationEnd(animation: Animator) {
if (!isCancelled) {
animationState = AnimationState.Idle
view.visibility = endVisibility
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class IconBackgroundDrawable(
super.setBounds(r)
}

override fun onBoundsChange(bounds: Rect?) {
override fun onBoundsChange(bounds: Rect) {
if (bounds != null) {
backgroundRect = Rect((bounds.width() - backgroundWidth) / 2,
(bounds.height() - backgroundHeight) / 2,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
"pngjs": "^6.0.0",
"prettier": "2.1.2",
"react": "18.0.0",
"react-native": "0.69.5",
"react-native": "0.69.7",
"react-native-fast-image": "^8.3.4",
"react-native-gesture-handler": "^1.6.1",
"react-native-reanimated": "2.10.0",
Expand Down Expand Up @@ -218,4 +218,4 @@
}
}
}
}
}

0 comments on commit afbe27c

Please sign in to comment.