Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
react-native-avoid-softinput
Advanced tools
Native logic for avoiding covering text inputs by soft input views
react-native-avoid-softinput
Handle keyboard in React Native apps like a Pro
Native solution for common React Native problem of focused views being covered by soft input view. It is solved by listening for soft input events and applying translation to react root view (or bottom padding if focused element's parent is scroll view) entirely on native side and only if currently focused view is covered by soft input frame. It supports focused views being positioned in scroll views and regular views (check out example app). It also supports modal content, when content is wrapped in AvoidSoftInputView.
Check package documentation
Version 3.x.x supports React Native 0.65+ (old architecture) and has support for Android API 21+ and iOS 11.0+. It also supports Fabric & TurboModules (new architecture) with React Native 0.70+.
Library supports Android & iOS, for out-of-tree platforms, View
component is used as fallback.
yarn add react-native-avoid-softinput
or
npm i --save react-native-avoid-softinput
npx pod-install
For reference, you can visit Getting started section
Check usage guides for module and view
If library does not suite your needs, you can check alternatives section
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
FAQs
Native logic for avoiding covering text inputs by soft input views
The npm package react-native-avoid-softinput receives a total of 11,278 weekly downloads. As such, react-native-avoid-softinput popularity was classified as popular.
We found that react-native-avoid-softinput demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.