Analysis updated 2026-05-18
Adjust a screen's layout when the on-screen keyboard opens using the keyboard height hook.
Detect whether the app is in the foreground or background to pause or resume work.
Check accessibility settings like bold text or screen reader status to adapt the UI.
Handle the Android hardware back button inside a functional component.
| react-native-community/hooks | opensumi/core | microsoft/azure-pipelines-tasks | |
|---|---|---|---|
| Stars | 3,630 | 3,630 | 3,632 |
| Language | TypeScript | TypeScript | TypeScript |
| Setup difficulty | easy | moderate | moderate |
| Complexity | 1/5 | 4/5 | 4/5 |
| Audience | developer | developer | ops devops |
Figures from each repo's GitHub metadata at analysis time.
Single npm or yarn install with no configuration file or provider component needed.
This is a library for React Native app developers who write components as functions (what the React ecosystem calls "functional components"). React Native provides many built-in APIs for reading things like the device orientation, the keyboard height, or whether the screen reader is active. Normally, using those APIs inside a functional component requires some manual wiring code. This package does that wiring for you by exposing each API as a "hook," which is a small function you call at the top of your component to get the data you need. The available hooks cover a practical range of device and app information: you can check whether the keyboard is visible and how tall it is, get the current orientation (portrait or landscape), know whether the app is running in the foreground or background, detect accessibility settings like bold text or the screen reader being on, get the dimensions of an image before displaying it, and respond to the Android hardware back button. Each hook is imported from the package by name, called once inside a component, and returns the current value or a small object with related values. The package requires React Native version 0.59 or newer. You install it with npm or yarn, and that is the only setup step. There is no configuration file or provider component to add. The README includes a short code snippet for every hook showing what it returns and how to use it. This library is maintained by the react-native-community organization, a group of volunteers who build and maintain ecosystem packages for React Native. Releases are managed with a tool called Changesets, and a contributor list is included in the README. If you are building a React Native app and want straightforward access to device and system information inside your components without writing the plumbing yourself, this package covers the most common cases in a consistent way.
A React Native library that exposes device information like keyboard height, orientation, and accessibility settings as easy-to-use hooks for functional components.
Mainly TypeScript. The stack also includes TypeScript, React Native.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.