File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,12 +109,15 @@ export const Box2Div = () => {
109109 throw new Error ( 'Wrong platform' )
110110}
111111
112- export const Box2View = React . forwardRef < View , Box2Props > ( function Box2Animated ( p , ref ) {
112+ export const Box2View = React . forwardRef < View , Box2Props > ( function Box2View ( p , ref ) {
113113 const props = useBox2Shared ( p )
114114 return < View { ...props } ref = { ref } />
115115} )
116116
117- export const Box2Animated = Reanimated . createAnimatedComponent ( Box2View )
117+ export const Box2Animated = React . forwardRef < View , Box2Props > ( function Box2Animated ( p , ref ) {
118+ const props = useBox2Shared ( p )
119+ return < Reanimated . View { ...props } ref = { ref } />
120+ } )
118121
119122export const Box2Measure = React . forwardRef < MeasureRef , Box2Props > ( function Box2 ( p , _ref ) {
120123 React . useImperativeHandle (
Original file line number Diff line number Diff line change @@ -2,11 +2,10 @@ import * as React from 'react'
22import { FlatList , View } from 'react-native'
33import * as Styles from '@/styles'
44import type { Props } from './list'
5- import { createAnimatedComponent } from './reanimated'
5+ import ReAnimated from './reanimated'
66import noop from 'lodash/noop'
77
8- // eslint-disable-next-line deprecation/deprecation
9- const AnimatedFlatList = createAnimatedComponent ( FlatList )
8+ const AnimatedFlatList = ReAnimated . FlatList
109
1110class List < Item > extends React . PureComponent < Props < Item > > {
1211 static defaultProps = {
Original file line number Diff line number Diff line change @@ -2,12 +2,11 @@ import * as React from 'react'
22import { FlatList , View } from 'react-native'
33import * as Styles from '@/styles'
44import { smallHeight , largeHeight } from './list-item2'
5- import { createAnimatedComponent } from './reanimated'
5+ import ReAnimated from './reanimated'
66import type { Props } from './list2'
77import noop from 'lodash/noop'
88
9- // eslint-disable-next-line deprecation/deprecation
10- const AnimatedFlatList = createAnimatedComponent ( FlatList )
9+ const AnimatedFlatList = ReAnimated . FlatList
1110
1211class List2 < T > extends React . PureComponent < Props < T > > {
1312 static defaultProps = {
You can’t perform that action at this time.
0 commit comments