React-native-paper: Document list of available icons

Created on 30 Nov 2018  路  7Comments  路  Source: callstack/react-native-paper


Current behaviour

image

Expected behaviour

Trying to use "calendar_today" in Material icons, and many other icons, some are appearing, and some are just "?"

Is there a list of whats supported and not ?

Code sample

icon="calendar_today"
style={styles.child}
size={20}
color={"#161616"}
/>

Screenshots (if applicable)

image

What have you tried

Your Environment

| software | version
| --------------------- | -------
| ios or android | 8.1
| react-native | 0.57.7
| react-native-paper | ^2.2.8
| node |
| npm or yarn |

help wanted

Most helpful comment

Link the react-native-paper module to your project after installing. It will work fine.

  1. npm install react-native-paper --save
  2. react-native link
  3. react-native link react-native-paper

All 7 comments

This means the icon is not available..

We use MaterialIcons from https://github.com/oblador/react-native-vector-icons. So only the icons available there are supported.

Currently you can see the list of all supported icons right in https://callstack.github.io/react-native-paper/icons.html

I'm having the same issue, I'm trying to add Navigation's icons from this source but most of the icons are not supported.

https://material.io/resources/icons/?style=baseline

"react": "16.6.0-alpha.8af6728"
"react-native": "0.57.4"
"react-native-paper": "^2.16.0"

Hey @devpolish , from version 3.0 we are using MaterialCommunityIcons by default.

Currently you can see the list of all supported icons right in

https://material.io/resources/icons/?style=baseline

Use example:
image

Name icon: _alarm_add_

Name react native:

...
<IconButton
     icon="alarm-add"
     size={20}
     onPress={() => console.log('Pressed')}
 />
...

Link the react-native-paper module to your project after installing. It will work fine.

  1. npm install react-native-paper --save
  2. react-native link
  3. react-native link react-native-paper
Was this page helpful?
0 / 5 - 0 ratings

Related issues

scottybo picture scottybo  路  3Comments

sritharanpalani picture sritharanpalani  路  4Comments

yaronlevi picture yaronlevi  路  3Comments

ZhengYuTay picture ZhengYuTay  路  3Comments

timothystewart6 picture timothystewart6  路  4Comments