错误:
import { Text } from 'react-native';
import Svg, {Text } from 'react-native-svg';
正确:
import * as Svg from 'react-native-svg';
<Svg.Svg
height="60"
width="200"
>
<Svg.Text
fill="none"
stroke="purple"
fontSize="20"
fontWeight="bold"
x="100"
y="20"
textAnchor="middle"
>react-native</Svg.Text>
</Svg.Svg>