No issue in 2.0.0-alpha.10
Issue present on newer versions
Current behavior
Warning: TypeError: Cannot read property 'displayName' of undefined
This error is located at:
180 | const AnimatedCellContainer =
> 181 | Animated.createAnimatedComponent(CellContainer);
const CellRenderer = (props: any) => {
const AnimatedCellContainer =
Animated.createAnimatedComponent(CellContainer);
...
return (
<AnimatedCellContainer {...props} style={[props.style, animatedStyles]} />
);
};
Expected behavior
No warning/error
To Reproduce
Install v2.0.3
use cell renderer component with reanimated
<FlashList
CellRendererComponent={CellRenderer}
disableAutoLayout={true}
.../>
const CellRenderer = (props: any) => {
const AnimatedCellContainer =
Animated.createAnimatedComponent(CellContainer);
...
return (
<AnimatedCellContainer {...props} style={[props.style, animatedStyles]} />
); };
Platform:
Environment
Issue present on v2.0.3 v2.0.2 v2.0.1 v2.0.0
No issue in 2.0.0-alpha.10
Issue present on newer versions
Current behavior
Warning: TypeError: Cannot read property 'displayName' of undefined
This error is located at:
Expected behavior
No warning/error
To Reproduce
Install v2.0.3
use cell renderer component with reanimated
Platform:
Environment
Issue present on v2.0.3 v2.0.2 v2.0.1 v2.0.0