react-native-keyboard-avoider icon indicating copy to clipboard operation
react-native-keyboard-avoider copied to clipboard

Remove unused imports: React and EasingFn

Open BangDori opened this issue 6 months ago • 0 comments

Currently, the following modules are imported but not used in the code:

import React from "react"; // ❗️ unused
import { useRef } from "react";
import { Platform } from "react-native";
import Animated, { EasingFn, useAnimatedStyle, useSharedValue, withTiming } from "react-native-reanimated"; // ❗️ unused EasingFn
import { useKeyboardHandlers } from "../hooks";
import { calcAndroidSystemPan, closeAnimation, measureFocusedInputBottomY, openAnimation } from "../utilities";
import { CommonProps, defaultCommonProps } from "./common-props";

These imports can be safely removed to improve code cleanliness and avoid unnecessary clutter.

Suggested Fix:

  • Remove the unused React import
  • Remove the unused EasingFn import from react-native-reanimated

BangDori avatar Apr 03 '25 01:04 BangDori