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

rn-keyboard-sticky-view

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rn-keyboard-sticky-view

Add Whatever You Want (TextInput, Buttons) Inside This Keyboard Sticky View

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
159
increased by57.43%
Maintainers
1
Weekly downloads
 
Created
Source

rn-keyboard-sticky-view

Add your own component inside this lightweight KeyboardStickyView, whether it be TextInput, Buttons, or who knows what! Supports both Android and iOS.

This component accomplishes the desired outcome using KeyboardAvoidingView provided by react-native, without the complicated animation code.

Preview

iOS DemoAndroid Demo

Installation

npm i rn-keyboard-sticky-view

or

yarn add rn-keyboard-sticky-view

Example

import React from 'react';
import { StyleSheet, TextInput } from 'react-native';
import KeyboardStickyView from 'rn-keyboard-sticky-view';

const KeyboardInput = (props) => {
  const [value, setValue] = React.useState('');

  return (
    <KeyboardStickyView style={styles.keyboardView}>
      <TextInput
        value={value}
        onChangeText={setValue}
        onSubmitEditing={() => alert(value)}
        placeholder="Write something..."
        style={styles.input}
      />
    </KeyboardStickyView>
  );
}

const styles = StyleSheet.create({
  keyboardView: { ... },
  input: { ... }
});

export default KeyboardInput;

Props

PropsTypeDescriptionDefault
styleobjectStyle of the KeyboardStickyView (background, border, etc.){}
childrennodeContent of the KeyboardStickyViewnull

Give me a Star

If you think this project is helpful just give me a ⭐️ :D

License

This project is licensed under the MIT License.

Author

Brought to you by Jinsoo Lim

Keywords

FAQs

Package last updated on 11 Oct 2019

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