Skip to main content
Version: 4.0.x

setShouldMimicIOSBehavior

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);