Installation
You can install @react-simplikit/mobile from npm using your favorite package manager.
sh
npm install @react-simplikit/mobilesh
pnpm add @react-simplikit/mobilesh
yarn add @react-simplikit/mobilesh
bun add @react-simplikit/mobileRequirements
- React 18 or higher
- TypeScript 4.7 or higher (recommended)
Usage
Import hooks directly from the package:
tsx
import { useKeyboardHeight, useAvoidKeyboard } from '@react-simplikit/mobile';All hooks are tree-shakeable, so you only include what you use in your bundle.