
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
rn-android-keyboard-adjust
Advanced tools
Simple android native module to manipulate the behavior of keyboard. Based on react-native-android-keyboard-adjust by Marc Zubricky.
Simple android native module to manipulate the behavior of keyboard. Based on react-native-android-keyboard-adjust by Marc Zubricky.
npm i -S rn-android-keyboard-adjust
import { setAdjustResize, setAdjustNothing } from 'rn-android-keyboard-adjust';
// ...
React.useEffect(() => {
setAdjustResize();
return () => {
setAdjustNothing();
};
}, []);
Name | Description |
---|---|
setAdjustNothing | Set 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. |
setAdjustPan | Set 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. |
setAdjustResize | Set to allow the window to be resized when an input method is shown, so that its contents are not covered by the input method. |
setAdjustUnspecified | Nothing specified. The system will try to pick one or the other depending on the contents of the window. |
setAlwaysHidden | Please always hide any soft input area when this window receives focus. |
setAlwaysVisible | Please always make the soft input area visible when this window receives input focus. |
setVisible | Please show the soft input area when normally appropriate (when the user is navigating forward to your window). |
setHidden | Please hide any soft input area when normally appropriate (when the user is navigating forward to your window). |
setUnchanged | Please don't change the state of the soft input area. |
getSoftInputMode | Get an integer code of current softInputMode value. |
setSoftInputMode | Set softInputMode value by an integer code . |
Methods reference from Android Developer.
MIT
FAQs
Simple android native module to manipulate the behavior of keyboard. Based on react-native-android-keyboard-adjust by Marc Zubricky.
The npm package rn-android-keyboard-adjust receives a total of 3,631 weekly downloads. As such, rn-android-keyboard-adjust popularity was classified as popular.
We found that rn-android-keyboard-adjust demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.