react native expo using icon



There are a few icon library supported by Expo which include MaterialIcons or IconsIcons.


To use these libary



import { MaterialIcons } from '@expo/vector-icons';



or


import { Ionicons } from '@expo/vector-icons';



And you can start to render icon of your linkings simply by specifying the name, for example :-


<MaterialIcons name="play-circle-filled" size={50} color="#b0f8ec" />


This will display a 'play icon'.

<Ionicons name="md-checkmark-circle" size={32} color="green" />


To get a full list of icon that is supported, you can try using the following link.

Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type