简体   繁体   English

React Native Paper Icons 存储库

[英]React Native Paper Icons repository

I have struggled a lot to figure out the repository being used in react native paper for Icons, using react native paper designing APP becomes very easy but figuring out Icon names was a bit struggle.我一直在努力找出用于图标的 React Native Paper 的存储库,使用 React Native Paper 设计 APP 变得非常容易,但弄清楚 Icon 名称有点困难。

React Native Paper uses Material Community Icons as default, it is a bit difficult to figure out the Icon names, below is the CDN URL for cheatsheet, just remove mdi- from any icon name at Valla it works!! React Native Paper 默认使用 Material Community 图标,很难弄清楚图标名称,下面是备忘单的 CDN URL,只需从 Valla 的任何图标名称中删除mdi- 即可

https://cdn.materialdesignicons.com/5.4.55/ https://cdn.materialdesignicons.com/5.4.55/

example:- in cheatsheet name is mdi-comment-outline , remove mdi- from this name thats it!!示例:- 在备忘单中的名称是mdi-comment-outline ,从这个名称中删除mdi-就是这样!!

<List.Item
    title="First Item"
    description="Item description"
    left={props => <List.Icon {...props} icon="comment-outline" />}
  />

I use this site: https://materialdesignicons.com/我使用这个网站: https://materialdesignicons.com/

Need to wait a few seconds then all icons will show Good search bar for quick searching需要等待几秒钟,然后所有图标将显示 Good search bar for quick search

It uses Material Design Icons as an icon library, if you want to add icons then this technique will definitely work:它使用Material Design Icons作为图标库,如果你想添加图标,那么这种技术肯定会起作用:

  1. Visit https://materialdesignicons.com/访问https://materialdesignicons.com/
  2. Click on any icon, and above there will be import Statement/Line for eg like: import { mdiAccountSchool } from '@mdi/js';点击任何图标,上面会出现 import Statement/Line 例如: import { mdiAccountSchool } from '@mdi/js'; . .
  3. just convert mdiAccountSchool => account-school .只需转换mdiAccountSchool => account-school

This will definitely work!这肯定会奏效!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM