react-native-custom-radio-group
react-native-custom-radio-group copied to clipboard
Can we add the gradient options to `buttonContainerActiveStyle`
It would be great if we can pass an array for adding gradient to the background, this is the wrapper I created to use gradient as background for one of my pages.
const OnboardingWrapper = ({ children, item }) => { return typeof item.backgroundColor === 'object' ? ( <LinearGradient style={styles.slide} colors={item.backgroundColor} start={{ x: 0.8, y: 1 }} end={{ x: 0, y: 0 }}> {children} </LinearGradient> ) : ( <View style={{ ...styles.slide, backgroundColor: item.backgroundColor }}>{children}</View> ); };
Thanks