title: ReactNativeElements
tags:
- ReactNativeElements
ReactNativeElements
https://reactnativeelements.com/docs/
安装
npm install react-native-elements
npm i --save react-native-vector-icons
link
react-native link react-native-vector-icons
// 进入android/app/build.gradle文件,添加如下内容:
project.ext.vectoricons = [
iconFontNames: [ ‘MaterialIcons.ttf’, ‘EvilIcons.ttf’ ]
]
apply from: “…/…/node_modules/react-native-vector-icons/fonts.gradle”
demo
import {
Button, ThemeProvider } from '