Skip to main content
Version: 7.0.x

setShouldMimicIOSBehavior

warning

DEPRECATED - to provide best possible support for Android 15, install react-native-edge-to-edge

Use setShouldMimicIOSBehavior method, to determine whether keyboard on Android should be handled by the library (like on iOS) or should be managed by OS (via android:windowSoftInputMode param).

Parameters

TypeRequiredDescription
booleanyesshould library handle keyboard handling on Android

Example

import { AvoidSoftInput } from "react-native-avoid-softinput";

AvoidSoftInput.setShouldMimicIOSBehavior(true);