Skip to content
View georgienwankwo's full-sized avatar
:octocat:
Working from home
:octocat:
Working from home

Organizations

@blockfence

Block or report georgienwankwo

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. This custom React hook, useKeyboardO... This custom React hook, useKeyboardObserver, allows you to detect whether the software keyboard (e.g., on mobile devices) is open or closed within your React application. It monitors changes in the visual viewport height and infers keyboard visibility based on these changes.
    1
    /* eslint-disable no-param-reassign */
    2
    import { useCallback, useEffect, useRef, useState } from 'react';
    3
    
                  
    4
    function useKeyboardObserver() {
    5
      const [isKeyboardOpen, setIsKeyboardOpen] = useState(false);