suwu150 / react-native-tree-select

react-native-tree-select组件树形结构选择
https://www.npmjs.com/package/react-native-tree-select
MIT License
66 stars 28 forks source link

Suggestion: add react-native-vector-icons in readme / 建议:在自述文件中添加react-native-vector-icons #24

Open JimTeva opened 3 years ago

JimTeva commented 3 years ago

I was running some issues displaying the icons with the react-native Image component, then I saw that react-native-vector-icons was implemented in the example, I tried it and it worked. Because react-native Image component wasn't working for me with react-native 0.61.5, I would advise to add react-native-vector-icons as a dependency for this library in the readme description as a fix in case the first Image component doesn't work. I would also indicate that the font used in the example is Ionicons and suggest the following import

import Icon from 'react-native-vector-icons/Ionicons';

--------------- translated by Google -->

我正在运行一些问题,以显示带有react-native Image组件的图标,然后看到示例中实现了react-native-vector-icons,我尝试了一下并成功了。 因为react-native Image组件不适用于react-native 0.61.5,所以我建议在自述文件中添加react-native-vector-icons作为此库的依赖项,以解决第一个Image问题 组件不起作用。 我还要指出示例中使用的字体是Ionicons并建议以下导入

import Icon from 'react-native-vector-icons/Ionicons';
suwu150 commented 3 years ago

@JimTeva

I have received your feedback, thank you very much, I am currently busy with other work, I will add this information later, if possible, you can also provide a merge request


已经收到你的反馈,非常感谢提出,目前我正在忙于其他工作,后续会添加该信息,如果可以,你也可以提供合并请求