Skip to content

Commit c2a9f7e

Browse files
committed
Fix deprecate call
1 parent ecf2ca8 commit c2a9f7e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/keyboardavoidingview/ReactKeyboardAvoidingView.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ internal class ReactKeyboardAvoidingView(context: Context) : ReactViewGroup(cont
150150
}
151151

152152
val reactContext = context as? ReactContext ?: return
153-
val eventDispatcher = UIManagerHelper.getEventDispatcherForReactTag(reactContext, id) ?: return
153+
val eventDispatcher = UIManagerHelper.getEventDispatcher(reactContext) ?: return
154154
keyboardInset = inset
155155
val maxHeight = if (inset > 0f) maxOf(restingHeight - inset, 0f) else Float.POSITIVE_INFINITY
156156

0 commit comments

Comments
 (0)