@@ -14,7 +14,6 @@ import type {
1414 AnimatedProps ,
1515} from '../createAnimatedComponent' ;
1616
17- import RefreshControl from '../../Components/RefreshControl/RefreshControl' ;
1817import ScrollView , {
1918 type ScrollViewProps ,
2019} from '../../Components/ScrollView/ScrollView' ;
@@ -83,7 +82,7 @@ const AnimatedScrollViewWithInvertedRefreshControl =
8382 ref ?: React . RefSetter < AnimatedScrollViewInstance > ,
8483 ...React . ElementConfig < typeof ScrollView > ,
8584 // $FlowFixMe[unclear-type] Same Flow type as `refreshControl` in ScrollView
86- refreshControl : ExactReactElement_DEPRECATED < any > ,
85+ refreshControl : React . MixedElement ,
8786 } ) {
8887 // Split `props` into the animate-able props for the parent (RefreshControl)
8988 // and child (ScrollView).
@@ -105,11 +104,10 @@ const AnimatedScrollViewWithInvertedRefreshControl =
105104 > ( intermediatePropsForRefreshControl ) ;
106105 // NOTE: Assumes that refreshControl.ref` and `refreshControl.style` can be
107106 // safely clobbered.
108- const refreshControl : ExactReactElement_DEPRECATED < typeof RefreshControl > =
109- cloneElement(props.refreshControl, {
110- ...refreshControlAnimatedProps ,
111- ref : refreshControlRef ,
112- } );
107+ const refreshControl = cloneElement ( props . refreshControl , {
108+ ...refreshControlAnimatedProps ,
109+ ref : refreshControlRef ,
110+ } ) ;
113111
114112 // Handle animated props on `NativeDirectionalScrollView`.
115113 const [ scrollViewAnimatedProps , scrollViewRef ] = useAnimatedProps <
0 commit comments