logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

在react-native-vector-icons中使用自定义图标

react-native-vector-icons的安装参考链接这里主要介绍如何在react-native-vector-icons中使用iconfont官网上的图标。1、下载图标素材首先在iconfont网站上挑选好图标,或者自己的设计将图标上传上去之后,加入购物车,选好所有的图标后,在购物车选择下载代码。解压后得到如下文件这里我们只需要iconfont.tff文件和iconf...

搭建ReactNative环境

1、安装node watchmanbrew install nodebrew install watchman安装完成后修改下npm镜像,参考链接npm config set registry https://registry.npm.taobao.org --globalnpm config set disturl https://registry.npm.taobao.org/ -...

#reactnative
安装react-native-vector-icons并使用默认图标

1、 安装使用npm安装react-native-vector-iconsnpm installreact-native-vector-icons--save2、cocoapods安装进入iOS目录执行 pod install 安装 RNVectorIconsPS: 如果iOS项目编译爆红提示Multiple commands produce xxx.ttf之类的说明字体文件重...

ReactNative绑定函数中的this

在一个button的onpress方法中传进一个函数back,这个函数中如果用到this的话,需要将back中的this进行绑定操作。1、传入时进行绑定onPress={this.back.bind(this)}2、在constructor中绑定constructor(props){super(props)this.state = {show : true,}...

到底了