import React from 'react'; import {StyleSheet, View} from 'react-native'; import { Circle, Defs, LinearGradient, Mask, Path, Polygon, Rect, Stop, Svg, Text, } from 'react-native-svg'; const styles = StyleSheet.create({ container: { flex: 1, height: 100, width: 200, }, }); function SimpleMask() { return ( ); } SimpleMask.title = 'Simple svg with mask'; function AnotherMask() { return ( ); } AnotherMask.title = 'Another svg with mask'; function MaskWithText() { return ( {'This text is under the rectangle'} ); } MaskWithText.title = 'Svg with with text and a mask with gradient'; const icon = ( ); const samples = [SimpleMask, AnotherMask, MaskWithText]; export {icon, samples};