I have several circular Animated.View
's with different backgroundColor
s here in RN. I want to, ideally via styles, split the backgroundColor
to be half and half, 2 dynamic colors like these:
Ive tried putting a separate View
as a child of my parent Animated.View
to be the other half of the color, but this doesn't work/keep the circular styling. The code:
<TouchableWithoutFeedback
style={globalStyles.button}
disabled={isDisabled || isPending || !isOpen}
hitSlop={{ top: 10, left: 10, right: 10, bottom: 10 }}
onPressIn={onPressIn}
onPressOut={onPressOut}
onPress={onPress}
>
<Animated.View
style={[
globalStyles.buttonInner,
applyButtonWidth(innerWidth),
{ backgroundColor },
]}
>
{content}
</Animated.View>
</TouchableWithoutFeedback>
I cant find anything on this. How can I split the backgroundColor
here?