diff --git a/package.json b/package.json index 5db1130..69f489b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ilz5753/rnutils", - "version": "0.1.5", + "version": "0.1.6", "description": "React Native Utils", "main": "lib/commonjs/index", "module": "lib/module/index", diff --git a/src/dynamicStyles/reanimated.tsx b/src/dynamicStyles/reanimated.tsx index 0dddada..7b85d5b 100644 --- a/src/dynamicStyles/reanimated.tsx +++ b/src/dynamicStyles/reanimated.tsx @@ -1,9 +1,9 @@ import { isEqual, isFunction } from 'lodash'; import React, { Component, + forwardRef, useEffect, type ComponentType, - forwardRef, type ForwardRefExoticComponent, type PropsWithoutRef, type RefAttributes, @@ -30,9 +30,9 @@ import Animated, { useAnimatedStyle, useDerivedValue, useSharedValue, + type AnimateProps, type DerivedValue, type SharedValue, - type AnimateProps, } from 'react-native-reanimated'; export type CustomDimensionValue = number | `${number}%`; export type StrNum = string | number; @@ -662,7 +662,7 @@ export function WithAnimated( } let _Component = isFunction(Comp) ? Class : Comp; let Render = $(_Component) as any; - return forwardRef((props: Readonly>, ref) => ( + return forwardRef>>((props, ref) => ( )); }