@@ -7,7 +7,7 @@ import React, {
77 memo ,
88 useEffect ,
99} from 'react' ;
10- import { Platform } from 'react-native' ;
10+ import { type Insets , Platform } from 'react-native' ;
1111import { State } from 'react-native-gesture-handler' ;
1212import Animated , {
1313 useAnimatedReaction ,
@@ -48,7 +48,7 @@ import {
4848 useReactiveSharedValue ,
4949 useScrollable ,
5050} from '../../hooks' ;
51- import type { BottomSheetMethods , Insets } from '../../types' ;
51+ import type { BottomSheetMethods } from '../../types' ;
5252import {
5353 animate ,
5454 getKeyboardAnimationConfigs ,
@@ -204,7 +204,7 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
204204 } , [ topInset , bottomInset , $modal , _animatedContainerHeight ] ) ;
205205 const animatedContainerOffset = useReactiveSharedValue (
206206 _providedContainerOffset ?? INITIAL_CONTAINER_OFFSET
207- ) as SharedValue < Insets > ;
207+ ) as SharedValue < Required < Insets > > ;
208208 const animatedHandleHeight = useReactiveSharedValue < number > (
209209 INITIAL_HANDLE_HEIGHT
210210 ) ;
@@ -388,7 +388,7 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
388388 isInTemporaryPosition ,
389389 keyboardBehavior ,
390390 ] ) ;
391- const animatedScrollableState = useDerivedValue ( ( ) => {
391+ const animatedScrollableState = useDerivedValue < SCROLLABLE_STATE > ( ( ) => {
392392 /**
393393 * if user had disabled content panning gesture, then we unlock
394394 * the scrollable state.
0 commit comments