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
"@react-native-masked-view/masked-view": "^0.2.7", "react-native-linear-gradient": "^2.6.2", "react-native": "0.66.1",
import LinearGradient from "react-native-linear-gradient"; import MaskedView from "@react-native-masked-view/masked-view"; <MaskedView style={{ flex: 1, flexDirection: 'row', height: '100%' }} maskElement={ <View style={{ // Transparent background because mask is based off alpha channel. backgroundColor: 'transparent', flex: 1, justifyContent: 'center', alignItems: 'center', }} > <Text style={{ fontSize: 60, color: 'black', fontWeight: 'bold', }} > Basic Mask </Text> </View> } > {/* Shows behind the mask, you can put anything here, such as an image */} <View style={{ flex: 1, height: '100%', backgroundColor: '#324376' }} /> <View style={{ flex: 1, height: '100%', backgroundColor: '#F5DD90' }} /> <View style={{ flex: 1, height: '100%', backgroundColor: '#F76C5E' }} /> <View style={{ flex: 1, height: '100%', backgroundColor: '#e1e1e1' }} /> </MaskedView>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: