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
Type | Required | Description |
---|---|---|
boolean | yes | should library handle keyboard handling on Android |
Example
import { AvoidSoftInput } from "react-native-avoid-softinput";
AvoidSoftInput.setShouldMimicIOSBehavior(true);