Closed dancomanlive closed 2 years ago
Try to use a View component for round styles:
// BAD 👎
renderCell={({index, symbol, isFocused}) => (
<View key={index}>
<Animated.Text
onLayout={getCellOnLayoutHandler(index)}
>
{...}
</Animated.Text>
</View>
)}
// GOOD ✔️
renderCell={({index, symbol, isFocused}) => (
<Animated.View
key={index}
onLayout={getCellOnLayoutHandler(index)}
>
<Text>{...}</Text>
</Animated.View>
)}
Thank you for the reply. The is no Animated.View in the code above and the code above works as expected on Android.
The square should be round, not square.