随笔分类 - React-Native
摘要:终端输入命令 export PATH=/usr/local/bin:$PATH
阅读全文
该文被密码保护。
摘要:运行 后,运行 报 解决方法: Or Copy this to index.android.js
阅读全文
摘要:import React, { Component } from 'react'; import { AppRegistry, Text, Image, View, TextInput, ScrollView, FlatList, SectionList, StyleSheet, } from 'react-native';...
阅读全文
摘要:子类必须在constructor方法中调用super方法,否则新建实例时会报错。这是因为子类没有自己的this对象,而是继承父类的this对象,然后对其进行加工。如果不调用super方法,子类就得不到this对象。
阅读全文
摘要:去官网http://www.gradle.org/downloadshttp://services.gradle.org/distributions下载匹配的 Gradle 版本把zip直接放到C:\Users\xxx\.gradle\wrapper\dists\gradle-2.x-all\xxx
阅读全文
摘要:P.S.0:不截图了,上传图片太麻烦,每次只能上传一张.... 先生成签名文件,如果已有签名文件略过此步: P.S.1:my-release-key这个名字可以自己取名,同时my-key-alias也是自己取名.... 上面的命令我们需要输入密钥库(keystore)密码和对应秘钥的密码,(P.S.
阅读全文
摘要:上GitHub:https://github.com/Microsoft/vscode-react-native Getting started Install VS Code (0.10.10+ is preferred). Install the extension in VS Code: Ty
阅读全文
摘要:开启Genymotion Android模拟器后1、运行“react-native run-android”报端口冲突....解决方法:2、运行“react-native run-android”报找不到 Build Tools revision 版本号 解决方法:找到对应的版本,进行安装。P.S.
阅读全文
摘要:效果图: 进入工作目录,运行 react-native init NavigatorProject 创建项目NavigatorProject 延伸:传参。 以上面的代码为基础。 一: 效果图: 二: 效果图:
阅读全文

浙公网安备 33010602011771号