react-native-svg#SvgCss TypeScript Examples
The following examples show how to use
react-native-svg#SvgCss.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Logo.tsx From natds-rn with ISC License | 6 votes |
Logo = ({
accessibilityLabel, color = 'neutral', model = 'a', size = 'veryHuge'
}: LogoProps) => {
const theme = useTheme()
const { file, height, width } = getLogoByProps(color, model, theme)
const logo = setStyle({
height: (getSize(theme, size) * height) / width,
hexColor: getCustomColor(color, theme),
width: getSize(theme, size)
}, file)
return (
<Container>
<SvgCss
accessible={!!accessibilityLabel}
accessibilityLabel={accessibilityLabel}
accessibilityRole="image"
testID="logo"
xml={logo}
/>
</Container>
)
}
Example #2
Source File: TerveystaloButton.tsx From nyxo-app with GNU General Public License v3.0 | 5 votes |
TerveystaloButton: FC = () => {
return (
<Container>
<SvgCss height={30} xml={TerveystaloLogo} />
</Container>
)
}