flyerhq/react-native-keyboard-accessory-view

View on GitHub
src/hooks/useKeyboardDimensions.tsx

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Function useKeyboardDimensions has 66 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

export const useKeyboardDimensions = (useListenersOnAndroid?: boolean) => {
  const { height } = useSafeAreaFrame()
  const [state, setState] = React.useState({
    keyboardEndPositionY: height,
    keyboardHeight: 0,
Severity: Major
Found in src/hooks/useKeyboardDimensions.tsx - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status