<Icon type="FontAwesome5" name="thumbs-up"/>
I want to make the icon to be smaller. what should I do with that code? I used React Native
CodePudding user response:
Working example below in React Native. (Cannot give you tailored suggestion with the limited information given.)
import { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome';
import { faChevronLeft } from '@fortawesome/pro-light-svg-icons';
...
<FontAwesomeIcon icon={faChevronLeft} size={18} color={'white'} />
CodePudding user response:
Wrap the icon component in a View component and give width and height to the View.
CodePudding user response:
If you are using Icon
component from react-native-elements
then there is a prop called size
.
<Icon type="FontAwesome5" name="thumbs-up" size={10}/>