Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

react native vector icons

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';
Comment

react native vector icon

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

react native vector icons

# 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"  />
Comment

react native vector icons link

react-native link react-native-vector-icons
Comment

react-native-vector-icons

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

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

@types/react-native-vector-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
Comment

react native vector icons

yarn add react-native-vector-icons
Comment

how to use react-native-vector-icons

<Icon name="rocket" size={30} color="#900" />
Comment

react native vector icons

pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
Comment

react-native-vector-icons

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

PREVIOUS NEXT
Code Example
Shell :: awk split each character 
Shell :: rename branch remote 
Shell :: create git repository 
Shell :: zip directory in linux 
Shell :: bash if file content equals 
Shell :: debian buster enable rc.local 
Shell :: docker create image 
Shell :: how to clone a private repo 
Shell :: enter a stopped docker container 
Shell :: git merge a branch to master/main 
Shell :: copy ssh key from windows to linux 
Shell :: git ignore global 
Shell :: git clone with token 
Shell :: notepad++ alternative 
Shell :: vim delete every other line 
Shell :: Flutter plugin not installed; this adds Flutter specific functionality 
Shell :: NGINX systemd service file 
Shell :: create swapfile ubuntu 
Shell :: install spotify on ubuntu 
Shell :: what is merge conflict in git 
Shell :: install wordpress on centos 7 
Shell :: Use slack in your terminal or CLI 
Shell :: prettier npm 
Shell :: where to store env file in firebase functions 
Shell :: reset git file 
Shell :: bash script change directory run a command 
Shell :: ionic capacitor ios 
Shell :: wget debian 
Shell :: Git - show all files that have changes to commit 
Shell :: creating new repository 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =