open-index/open-npm huggingface dataset:
npm package: @stereye/react-native-keyboard-shift
Description: A 2020s compatible keyboard avoiding view for Android and iOS that just works.
Author: Chris Frewin
Latest version: 1.1.7-beta.0

# react-native-keyboard-shift

This repo is a fork of [FullStackCraft/react-native-keyboard-shift
](https://github.com/FullStackCraft/react-native-keyboard-shift). Tested on React Native 0.68+.

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/stereye/react-native-keyboard-shift/blob/master/LICENSE) [![npm version](https://img.shields.io/npm/v/react-native-keyboard-shift.svg?style=flat)](https://www.npmjs.com/package/@stereye/react-native-keyboard-shift) ![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)

# Usage In Your Project

Install and save this package as a dependency:

```bash
npm install --save @stereye/react-native-keyboard-shift
```

Import and use the KeyboardShift component:

```tsx
import '@stereye/react-native-keyboard-shift'
// other imports

export default function YourCoolKeyboardScreen () {

    // Other logic, variables, etc.

    return (
        <KeyboardShift>
            {/* Screen components */}
        </KeyboardShift>
    )
}
```

# Compile and Develop

1. Clone this repo:

```bash
git clone https://github.com/stereye/react-native-keyboard-shift
```

2. Move into the example folder:

```
cd react-native-keyboard-shift/example
```

3. Install dependencies:

```
npm install
```

4. Start Metro

```
npm start
```

5. Start Android or iOS

```bash
npm run android
# -or- iOS
npm run ios
```

Enjoy the juicy keyboard shifty-ness!

# ANOTHER Keyboard Shifting Component?!

See the original [blog post](https://chrisfrewin.medium.com/a-keyboard-avoiding-view-for-react-native-in-2021-196701ff0608) that led to the creation of this library for more information.
npm package: @sterile/typeof
Description: Extended typeof operator for more control over your types.
Author: im-lonely
Latest version: 1.0.0

# @sterile/typeof

**Extended typeof operator for more control over your types.**

Examples:

```ts
import typeOf from "@sterile/typeof";

typeOf({}); // {}

typeOf(0); // number

typeOf(""); // string

typeOf({ hello: "world" }); // { hello: string }

typeOf({ hello: "world", world: { answer: 42, people: [] } }); // { hello: string; world: { answer: number; people: never[] } }

typeOf(new (class Person {})()); // Person

typeOf(null); // null

typeOf(undefined); // undefined

typeOf([]); // never[]

typeOf([1, 2, 3]); // number[]

typeOf(["", undefined]); // string?[]

typeOf(["", 1, undefined]); // (number | string | undefined)[]

typeOf(["", ""]); // string[]

typeOf(["", 0]); // (number | string)[]

typeOf(["", [0]]); // (number[] | string)[]

typeOf([[{ hello: "world" }]]); // { hello: string }[][]

typeOf([[""]]); // string[][]

typeOf(Object.seal([])); // readonly never[]

typeOf(Object.seal([""])); // [string]

typeOf(Object.seal([1, "", {}])); // [number, string, {}]

typeOf(Object.seal({})); // readonly {}

typeOf(Object.freeze({})); // readonly {}

typeOf(Object.freeze([])); // readonly never[]

typeOf(Object.freeze([1, 2, 3])); // readonly number[]

typeOf(Object.freeze({ hello: "world" })); // readonly { hello: string }
```