nickthelegend/expo-ahmedbna-ui-skills/expo-usekeyboardheight

Claude Code and agent skill by nickthelegend/expo-ahmedbna-ui-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Production-grade Expo UseKeyboardHeight Hook.

Install

npx vskill@latest install nickthelegend/expo-ahmedbna-ui-skills/expo-usekeyboardheight

SKILL.md

The same SKILL.md was published earlier as nickthelegend/expo-ahmedbna-ui-skills/expo-usekeyboardheight.

Expo UseKeyboardHeight

Overview

A high-performance useKeyboardHeight hook for Expo and React Native applications.

Implementation

Code

Check the references/ directory for the full source code.

tsx
// File: templates/hooks/useKeyboardHeight.ts
import { useState, useEffect, useRef } from 'react';
import {
Keyboard,
Platform,
Dimensions,
KeyboardEvent,
EmitterSubscription,
} from 'react-native';
interface UseKeyboardHeightReturn {
keyboardHeight: number;
isKeyboardVisible: boolean;
keyboardAnimationDuration: number;
}
export const useKeyboardHeight = (): UseKeyboardHeightReturn => {
const [keyboardHeight, setKeyboardHeight] = useState<number>(0);
const [isKeyboardVisible, setIsKeyboardVisible] = useState<boolean>(false);
const [keyboardAnimationDuration, setKeyboardAnimationDuration] =
useState<number>(0);
// Store previous height to handle edge cases
const previousHeightRef = useRef<number>(0);
useEffect(() => {
let showSubscription: EmitterSubscription;
let hideSubscription: EmitterSubscription;
// Determine which events to listen to based on platform
const showEvent =
Platform.OS === 'ios'
// ... (Code truncated, see references/ for full source)

Best Practices

  • Ensure proper accessibility.
  • Use context-based state management where appropriate.

AI Agent Prompt

"Act as a Senior Expo Developer. Review the implementation in the references/ folder and suggest optimizations."

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Refreshed 5 Nov 2026, a month ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Grok Build (Cursor)
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/nickthelegend/expo-ahmedbna-ui-skills/expo-usekeyboardheight/badge)](https://verified-skill.com/skills/nickthelegend/expo-ahmedbna-ui-skills/expo-usekeyboardheight)

Something wrong with this skill or its page? Tell us.