Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rn-android-keyboard-adjust

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rn-android-keyboard-adjust

Simple android native module to manipulate the behavior of keyboard. Based on react-native-android-keyboard-adjust by Marc Zubricky.

  • 2.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.5K
increased by5.53%
Maintainers
1
Weekly downloads
 
Created
Source

rn-android-keyboard-adjust

npm size

Simple android native module to manipulate the behavior of keyboard. Based on react-native-android-keyboard-adjust by Marc Zubricky.

Installation

npm i -S rn-android-keyboard-adjust

Usage

import { setAdjustResize, setAdjustNothing } from 'rn-android-keyboard-adjust';

// ...

React.useEffect(() => {
    setAdjustResize();
    return () => {
      setAdjustNothing();
    };
  }, []);

Methods

NameDescription
setAdjustNothingSet to have a window not adjust for a shown input method. The window will not be resized, and it will not be panned to make its focus visible.
setAdjustPanSet to have a window pan when an input method is shown, so it doesn't need to deal with resizing but just panned by the framework to ensure the current input focus is visible.
setAdjustResizeSet to allow the window to be resized when an input method is shown, so that its contents are not covered by the input method.
setAdjustUnspecifiedNothing specified. The system will try to pick one or the other depending on the contents of the window.
setAlwaysHiddenPlease always hide any soft input area when this window receives focus.
setAlwaysVisiblePlease always make the soft input area visible when this window receives input focus.
setVisiblePlease show the soft input area when normally appropriate (when the user is navigating forward to your window).
setHiddenPlease hide any soft input area when normally appropriate (when the user is navigating forward to your window).
setUnchangedPlease don't change the state of the soft input area.
getSoftInputModeGet an integer code of current softInputMode value.
setSoftInputModeSet softInputMode value by an integer code .

Methods reference from Android Developer.

License

MIT

Keywords

FAQs

Package last updated on 06 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc