We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
color-mix
The text was updated successfully, but these errors were encountered:
react-native cannot use css and mix-color is not present. Therefore, alpha-blend is valid.
const Button = () => { const style = ({ pressed }: PressableStateCallbackType) => { return StyleSheet.flatten(StyleSheet.compose([styles.button, pressed ? styles.pressed : undefined])) } return ( <Pressable style={style}> <Text>press here!</Text> </Pressable> ) } const styles = StyleSheet.create({ button: { backgroundColor: buttonColor, }, pressed: { backgroundColor: alphaBlend(buttonColor, OVERLAY_COLOR) } })
Sorry, something went wrong.
naporin0624
No branches or pull requests
color-mix
and alpha-blend in cssThe text was updated successfully, but these errors were encountered: