【发布时间】:2021-08-04 19:09:49
【问题描述】:
我正在尝试从 @dicebear/avatars 渲染 svg 文件路径
let svg = createAvatar(style, {
seed: 'random',
// ... and other options
});
但是当我尝试在 react-native 中渲染时,即使我使用了一个名为 react-native-render-html 的库,也没有显示 我正在尝试使用这样的库进行渲染
<View style={styles.container}>
<HTML source={{ html: svg }} />
<StatusBar style="white" />
</View>
当我这样做时,这就是我得到的[
【问题讨论】:
-
this 回答你的问题了吗?
-
不,我没有 .svg 文件我只有 html svg 代码
标签: react-native svg