# react-native-input-keyboard

> This component will automatically adjust the screen to remain the focused input visible while the virtual keyboard is displayed.

Latest version **1.0.5** (published 2026-06-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-input-keyboard
pnpm add react-native-input-keyboard
yarn add react-native-input-keyboard
bun add react-native-input-keyboard
```

## Health

**Score 55/100 (C)** — status: active.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2026-06-23 |
| First published | 2023-07-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 17.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Caio Teixeira |
| Maintainers | caioedut |
| Keywords | react, react-native, input, keyboard, avoiding |

## Links

- npm: https://www.npmjs.com/package/react-native-input-keyboard
- Repository: https://github.com/caioedut/react-native-input-keyboard
- Homepage: https://github.com/caioedut/react-native-input-keyboard#readme
- Issues: https://github.com/caioedut/react-native-input-keyboard/issues
- npm.io page: https://npm.io/package/react-native-input-keyboard

## 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.5 (latest) — 2026-06-23
- 1.0.4 — 2026-06-23
- 1.0.3 — 2026-06-23
- 1.0.2 — 2026-03-30
- 1.0.1 — 2026-03-30
- 1.0.0 — 2026-03-30
- 0.0.8 — 2023-10-11
- 0.0.6 — 2023-08-11
- 0.0.5 — 2023-08-11
- 0.0.4 — 2023-08-11
- 0.0.29 — 2023-08-03
- 0.0.28 — 2023-08-03
- 0.0.27 — 2023-07-27
- 0.0.26 — 2023-07-27
- 0.0.25 — 2023-07-05

## README

# React Native Input Keyboard

This component will automatically adjust the screen to remain the focused input visible while the virtual keyboard is displayed.

[![npm version](https://badge.fury.io/js/react-native-input-keyboard.svg)](https://badge.fury.io/js/react-native-input-keyboard)

## Installation

### Expo

```shell
expo install react-native-input-keyboard
```

### Other

```shell
npm install react-native-input-keyboard
# OR
yarn add react-native-input-keyboard
# OR
pnpm add react-native-input-keyboard
```

## Usage

```js
import { TextInput } from 'react-native';
import InputKeyboard from 'react-native-input-keyboard';

function Screen() {
    return (
      <InputKeyboard>
        {/* ... */}
        <TextInput />
        {/* ... */}
      </InputKeyboard>
    )
}
```

## Props

Inherits [View Props](https://reactnative.dev/docs/view#props).

| Prop      | Type       | Default            | Description                                              |
|-----------|------------|--------------------|----------------------------------------------------------|
| `enabled` | `boolean`  | `true`             | Enable or disable the component behaviors.               |
| `offset`  | `number`   | `0`                | This is the distance between the input and the keyboard. |
| `onPress` | `function` | `Keyboard.dismiss` | The behavior when users press outside the input.         |

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