“React-nativo-vetor-icons” Respostas de código

reaja o ícone de vetor nativo

import Icon from 'react-native-vector-icons/FontAwesome';
const myIcon = <Icon name="rocket" size={30} color="#900" />;
Wrong Wallaby

React-nativo-vetor-icons

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

const myIcon = <Icon name="rocket" size={30} color="#900" />;
florinrelea

reagir ícones de vetores nativos

# With yarn
yarn add react-native-vector-icons
# With npm : npm i react-native-vector-icons
# In android go to android/app/build.gradle file add following line 
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
# In ios install required pods
npx pod-install
# Import
import FontAwesome from 'react-native-vector-icons/FontAwesome';
# Use
<FontAwesome name="rocket"  />
ashirbad-panigrahi

@types/react-nativo-vetor-icons

# Add types for react-native-vector-icons with npm
npm i --save-dev @types/react-native-vector-icons
# With yarn
yarn add --dev @types/react-native-vector-icons
ashirbad-panigrahi

Respostas semelhantes a “React-nativo-vetor-icons”

Procure respostas de código populares por idioma

Procurar outros idiomas de código