Socket
Socket
Sign inDemoInstall

@pembajak/react-native-keyboard-avoiding-scroll-view

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @pembajak/react-native-keyboard-avoiding-scroll-view

React Native ScrollView extension that prevents inputs from being covered by the keyboard


Version published
Maintainers
1
Install size
10.0 MB
Created

Readme

Source

react-native-keyboard-avoiding-scroll-view

npm version CircleCI Status license: MIT Supports Android and iOS code style: prettier semantic-release

React Native ScrollView extension that prevents inputs from being covered by the keyboard.

Getting started

$ npm install react-native-keyboard-avoiding-scroll-view --save

Usage

Import KeyboardAvoidingScrollView, KeyboardAvoidingFlatList, or KeyboardAvoidingSectionList and use them like the regular ScrollView, FlatList or SectionList components from React Native core. Internally, these components are wrapped in another custom component called KeyboardAvoidingContainer, which is also exported for advanced use cases.

import {KeyboardAvoidingScrollView} from 'react-native-keyboard-avoiding-scroll-view';

function MyComponent() {
  return (
    <KeyboardAvoidingScrollView stickyFooter={<Button />}>
      <TextInput />
      <TextInput />
      <TextInput />
    </KeyboardAvoidingScrollView>
  )
}

Props


Reference

Props

stickyFooter

Used to display a fixed view under the scrollable content. Sticky footer is always shown above the keyboard, which could, for example, be the desired behaviour for a submit button.

TypeRequired
React.ReactNodeNo

containerStyle

Used to style the container component.

TypeRequired
StyleProp<ViewStyle>No

License

MIT License © Alka, Inc

Keywords

FAQs

Last updated on 29 Dec 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc