Skip to content

Commit 3ebe272

Browse files
committed
Fix typings and failing build
1 parent 5825988 commit 3ebe272

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/stackAggregator/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ class StackAggregator extends PureComponent<StackAggregatorProps, State> {
102102
}
103103
}
104104

105-
getAnimatedScales = (): Animated.Value[] => {
105+
getAnimatedScales = () => {
106106
return React.Children.map(this.props.children, (_item, index) => {
107107
return new Animated.Value(this.getItemScale(index));
108-
});
108+
}) as Animated.Value[];
109109
}
110110

111111
getItemScale = (index: number) => {
@@ -298,7 +298,7 @@ class StackAggregator extends PureComponent<StackAggregatorProps, State> {
298298
</Animated.View>
299299

300300
{React.Children.map(children, (item, index) => {
301-
return this.renderItem(item, index);
301+
return this.renderItem(item as JSX.Element | JSX.Element[], index);
302302
})}
303303

304304
{collapsed && (

0 commit comments

Comments
 (0)