react-native-svg-flagkit-typescript
Version:
SVG flag for react-native
42 lines (39 loc) • 1.82 kB
JavaScript
import React from 'react'
import Svg, { Defs, LinearGradient, Stop, G, Path } from 'react-native-svg'
const SvgJm = props => (
<Svg viewBox="0 0 21 15" width={21} height={15} {...props}>
<Defs>
<LinearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="JM_svg__a">
<Stop stopColor="#FFF" offset="0%" />
<Stop stopColor="#F0F0F0" offset="100%" />
</LinearGradient>
<LinearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="JM_svg__b">
<Stop stopColor="#1DBE4F" offset="0%" />
<Stop stopColor="#159B3F" offset="100%" />
</LinearGradient>
<LinearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="JM_svg__c">
<Stop stopColor="#262626" offset="0%" />
<Stop stopColor="#0D0D0D" offset="100%" />
</LinearGradient>
<LinearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="JM_svg__d">
<Stop stopColor="#FFD646" offset="0%" />
<Stop stopColor="#FED02F" offset="100%" />
</LinearGradient>
</Defs>
<G fill="none" fillRule="evenodd">
<Path fill="url(#JM_svg__a)" d="M0 0h21v15H0z" />
<Path fill="url(#JM_svg__b)" d="M0-.003h21v15H0z" />
<Path fill="url(#JM_svg__c)" d="M0-.003l9 7.5-9 7.5z" />
<Path
fill="url(#JM_svg__c)"
transform="matrix(-1 0 0 1 33 0)"
d="M12-.003l9 7.5-9 7.5z"
/>
<Path
d="M10.5 6.291L-.962-1.44-2.08.218l10.792 7.28-10.792 7.279 1.118 1.658L10.5 8.704l11.462 7.73 1.118-1.657-10.791-7.28L23.08.218 21.962-1.44 10.5 6.291z"
fill="url(#JM_svg__d)"
/>
</G>
</Svg>
)
export default SvgJm