“React Native Vector ikona wektorów” Kod odpowiedzi

React Native Vector ikony wektorowe nie pokazują

add this in '/app/build.gradle'

apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
Jurie

React Native Vector ikona wektorów

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

React Native Vector ikony wektorowe

1-npm install --save react-native-vector-icons
2-Edit android/app/build.gradle : (add below code)
    apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
3-Edit android/settings.gradle : (add below codes)
	+ include ':react-native-vector-icons'
	+ project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
4-Edit android/app/build.gradle : (add below code to dependencies)
    dependencies {
    ...
    compile project(':react-native-vector-icons')
}
5-import fontawesome to App.js :
import FontAwesome5 from 'react-native-vector-icons/FontAwesome5';
zizi-engi

ikona shwoing pudełka Reacct Native wektor ikony wektorowe

In 'android/app/build.gradle' (not in android/build.gradle),

apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"

Then,
react-native link react-native-vector-icons 
react-native run-android
react-native start
Bad Buffalo

React-Native-Vector-ikony

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

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

React Native Vector ikony wektorowe

# 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

Odpowiedzi podobne do “React Native Vector ikona wektorów”

Pytania podobne do “React Native Vector ikona wektorów”

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu