# rn-keyboard-sticky-view

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

Latest version **1.0.4** (published 2019-10-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install rn-keyboard-sticky-view
pnpm add rn-keyboard-sticky-view
yarn add rn-keyboard-sticky-view
bun add rn-keyboard-sticky-view
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2019-10-11 |
| First published | 2019-10-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 31 |
| Author | Jinsoo Lim |
| Maintainers | jinsoo601 |
| Keywords | react, react-native, keyboard-sticky-view, keyboard-sticky-accessory, keyboard-sticky-input, keyboard-avoiding-view, keyboard-avoiding-input, sticky, keyboard, accessory, mobile, ios, android |

## Links

- npm: https://www.npmjs.com/package/rn-keyboard-sticky-view
- Repository: https://github.com/jinsoo601/rn-keyboard-sticky-view
- Homepage: https://github.com/jinsoo601/rn-keyboard-sticky-view#readme
- Issues: https://github.com/jinsoo601/rn-keyboard-sticky-view/issues
- npm.io page: https://npm.io/package/rn-keyboard-sticky-view

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2019-10-11
- 1.0.3 — 2019-10-10
- 1.0.2 — 2019-10-03
- 1.0.1 — 2019-10-03
- 1.0.0 — 2019-10-03

## README

# 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 Demo            |           Android Demo        |
| :---------------------------: | :---------------------------: |
| ![](https://media.giphy.com/media/jQVmUlNEHmcrcJaPD7/giphy.gif) | ![](https://media.giphy.com/media/MaJ5mJFGcjDdn9WVeX/giphy.gif) |

## 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
| Props    | Type   | Description                                                | Default  |
| -------- | ------ | ---------------------------------------------------------- | -------- |
| style    | object | Style of the KeyboardStickyView (background, border, etc.) | {}       |
| children | node   | Content of the KeyboardStickyView                          | null     |

## 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

---
_Source: https://npm.io/package/rn-keyboard-sticky-view · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
