Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 28469

View borderRadius style not applied on Android when view is inside a FlatList

$
0
0

I have a component that I used for selecting dates in a calendar. If a date is selected, the number should have circle as a background. I have wrapped the <Text> in a <View> with a borderRadius styling and the component itself works.

But when I render my component in a <FlatList>, the borderRadius is simply not applied on Android.

Check out the screenshots for iOS and Android.

I've tried a lot of adjustments but with no luck, and now reach out. An Expo example of my component code is here, the component itself is DaySelectorItem.js, and the list is in DaySelectorItem.js

Code here https://snack.expo.io/@esbenvb/android-square-circles

Thank you in advance :)

android shows squares

iOS works as expected


Viewing all articles
Browse latest Browse all 28469

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>