Heroicons are designed by Steve Schoger and published by Tailwind Labs.
A full directory of all available icons can be found here:
react-native-heroicons requires react-native-svg v9 or higher
yarn add react-native-heroicons react-native-svgnpm i react-native-heroicons react-native-svgSpecific icons:
importReactfrom"react";import{View}from"react-native";import{SparklesIcon}from"react-native-heroicons/solid";import{SparklesIconasSparklesIconOutline}from"react-native-heroicons/outline";constApp=()=>{return(<View><SparklesIcon/><SparklesIconOutline/></View>);};exportdefaultApp;Entire icon pack:
importReactfrom"react";import*asIconsfrom"react-native-heroicons/solid";constApp=()=>{return<Icons.SparklesIcon/>;};exportdefaultApp;Icons can be adjusted with the size prop (default: 24):
import{SparklesIconasSparklesIconOutline}from"react-native-heroicons/outline";// ...<SparklesIconOutlinecolor="red"fill="black"size={42}/>;