Skip to content

removeIosKeyboardObserver()

function removeIosKeyboardObserver(): 
  | HookExtension
  | null;

iOS

Stops the WebView from insetting its scroll view for the keyboard, for an app whose own native code handles the keyboard: react-native-webview's removeIosKeyboardObserver.

The page's visualViewport still shrinks for it. It removes the WKWebView's own observers of the keyboard notifications, so switching it off doesn't add them back: a new WebView, after a remount, has them again.

Returns

| HookExtension | null

Null on Android.