import React, {useRef, useState} from 'react';
import {Image, StyleSheet, View} from 'react-native';
import {Circle, G, Line, Path, Rect, Svg} from 'react-native-svg';
const styles = StyleSheet.create({
container: {
flex: 1,
height: 100,
width: 200,
},
svg: {
flex: 1,
alignSelf: 'stretch',
},
});
function SvgExample() {
return (
);
}
SvgExample.title = 'SVG';
function SvgOpacity() {
return (
);
}
SvgOpacity.title = 'SVG with `opacity` prop';
function SvgViewbox() {
return (
);
}
SvgViewbox.title =
'SVG with `viewBox="40 20 100 40" and preserveAspectRatio="none"';
function SvgLayout() {
return (
);
}
SvgLayout.title = 'SVG with flex layout';
function SvgNativeMethods() {
const [base64, setBase64] = useState('');
const rootRef = useRef