# ss-android-keyboard-adjust

> Change the input mode for the Android keyboard in a React Native app.

Latest version **1.0.0** (published 2022-01-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install ss-android-keyboard-adjust
pnpm add ss-android-keyboard-adjust
yarn add ss-android-keyboard-adjust
bun add ss-android-keyboard-adjust
```

## 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.0 |
| Published | 2022-01-17 |
| First published | 2022-01-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 82.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | mr.motionman |
| Keywords | android, keyboard, react, native, activity, input |

## Links

- npm: https://www.npmjs.com/package/ss-android-keyboard-adjust
- Repository: https://github.com/boykod/ss-android-keyboard-adjust
- Homepage: https://github.com/boykod/ss-android-keyboard-adjust#readme
- Issues: https://github.com/boykod/ss-android-keyboard-adjust/issues
- npm.io page: https://npm.io/package/ss-android-keyboard-adjust

## 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.0 (latest) — 2022-01-17

## README

# ss-android-keyboard-adjust

Change the input mode for the Android keyboard in a React Native app.

If you are having issues with the default keyboard screen adjust modes and need an easy way to instantly switch them in your app. Quickly go from `Pan` to `Resize` to `Nothing` to get the screen displayed perfectly with the keyboard.

#### Adjust Nothing Example
![adjust nothing keyboard down](http://i.imgur.com/A9bfdQY.png)
![adjust nothing keyboard up](http://i.imgur.com/sCt0EWn.png)

#### Adjust Resize Example
![adjust resize keyboard down](http://i.imgur.com/xgXi0iR.png)
![adjust resize keyboard up](http://i.imgur.com/7QdVbmZ.png)

## Installation instructions for Android

### Install the package

`npm install --save ss-android-keyboard-adjust`

### Update android/app/build.gradle

Add `compile project(":ss-android-keyboard-adjust")` to dependencies:

```
dependencies {
    ...
    implementation project(":ss-android-keyboard-adjust")
    ...
 }
```
### Update android/settings.gradle

```
...
include ':ss-android-keyboard-adjust'
project(':ss-android-keyboard-adjust').projectDir = new File(settingsDir, '../node_modules/ss-android-keyboard-adjust/android')
...
```

## Example
```
import AndroidKeyboardAdjust from 'ss-android-keyboard-adjust';

AndroidKeyboardAdjust.setAdjustNothing();
AndroidKeyboardAdjust.setAdjustPan();
AndroidKeyboardAdjust.setAdjustResize();
AndroidKeyboardAdjust.setAdjustUnspecified();
AndroidKeyboardAdjust.setAlwaysVisible();
AndroidKeyboardAdjust.setAlwaysHidden();
AndroidKeyboardAdjust.setVisible();
AndroidKeyboardAdjust.setHidden();
AndroidKeyboardAdjust.setUnchanged();
```

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