Perfect, crisp, high definition icons and pixel ideal fonts.
yarn add react-native-vector-icons
# or
# npm i --save react-native-vector-icons
You need to follow below steps in order to work with RN>=0.60
Now back to root folder and create a file named react-native.config.js
in root of your project and add below code in this file.
// react-native.config.js
module.exports = {
assets: ['react-native-vector-icons']
};
import React from 'react';
import { View } from 'react-native';
import { Icon } from 'monalisa-ui';
const Example = () => (
<View>
<Icon name="pluscircleo" type="AntDesign" size={30} />
<Icon name="add-user" type="Entypo" size={30} />
<Icon name="arrow-down" type="EvilIcons" size={30} />
<Icon name="activity" type="Feather" size={30} />
<Icon name="glass" type="FontAwesome" size={30} />
<Icon name="accusoft" type="FontAwesome5" size={30} />
</View>
);
export default Example;
import React from 'react';
import { Icon } from 'monalisa-ui';
const Example = () => (
<Icon
android="chevron-left"
ios="chevron-small-left"
type="Entypo"
size={30}
/>
);
export default Example;