Add Icon with React Activate Material UI Button

Asked

Viewed 773 times

-1

I have this button with the icon Tails, but I would like to put the expandmore that has in the ui material, however, when putting it, it does not work, no icon name that has more than one word works

import {Icon} from 'react-native-material-ui';
<Button 
color="#598ac1"
width="17%"
height={23}
style={styles.details}
onPress={() => {this.addDescricao();}}>
<Icon name="details" size={20} color="white" />
</Button>

1 answer

0

I’ll give you the suggestion to use the

import Icon from 'react-native-vector-icons/FontAwesome'

  <Icon name='heart' size={30} color='white'/>

Look for the desired icon in this directory

If necessary, switch from Fontawesome to the desired group. And don’t forget to install the dependencies in your project:
yarn add react-native-vector-icons or npm i react-native-vector-icons

Browser other questions tagged

You are not signed in. Login or sign up in order to post.