随笔分类 - react native
摘要:import React, { Component } from 'react'; import { Alert, StyleSheet, Text, TouchableOpacity, View } from 'react-native'; import Orientation from 'rea
阅读全文
摘要:安装的依赖和导入模块参考官网 https://reactnavigation.org/docs/nesting-navigators/#navigating-to-a-screen-in-a-nested-navigator 页面跳转用的是 https://reactnavigation.org/d
阅读全文
摘要:https://www.devio.org/2016/07/23/React-Native应用部署-热更新-CodePush最新集成总结/ 集成: npm install -g code-push-cli code-push -v 向code-push服务器注册app code-push app a
阅读全文
摘要:1. 在全局路径下修改环境变量 vim ~/.bash_profile # Setting PATH for Python 3.6 # The original version is saved in .bash_profile.pysave PATH="/Library/Frameworks/Py
阅读全文
摘要:使用系统自带Model 不能做到,因为官网讲了,只能有一个在最上层的Model 可以用 import Modal from 'react-native-modalbox'; 这个Model 可以设置coverScreen={true},弹出之后能覆盖全屏,隐藏了底部导航栏。这个功能是很实用的。 参考
阅读全文
摘要:https://www.jianshu.com/p/0d3cde0237e7
阅读全文
摘要:在配置navigationOptions 时可以这样,设置标题和图片icon navigationOptions:{ tabBarLabel:(({tintColor,focused})=>{ return ( <View> <Text style={(item.label=='计划')?style
阅读全文
摘要:
阅读全文
摘要:1. 分页效果设置 pagingEnabled={true} <ScrollView ref={e => this.scroll = e} horizontal={true} directionalLockEnabled showsHorizontalScrollIndicator={false}
阅读全文
摘要:http://www.voidcn.com/article/p-vijhprhu-buo.html 直接在View上绑定点击事件,是没有用的。要使任何元素处理React-Native UI中的触摸/单击事件,您需要将元素放在TouchableOpacity,TouchableWithoutFeedb
阅读全文
摘要://通过此属性可以获取View的宽高和相对父级的位置 onLayout = {(event)=>console.log('event',event.nativeEvent.layout)} https://www.hangge.com/blog/cache/detail_1747.html
阅读全文
摘要:https://blog.csdn.net/isaisai/article/details/49801701?_t_t_t=0.5862080130443164 react native Text 上无法指定borderWidth 等一系列属性, 解决方法,在Text 外面添加一个View ,在Vi
阅读全文
摘要:import React, { Component, Fragment } from 'react' import { StyleSheet, Text, View, TouchableOpacity, Dimensions } from 'react-native' import moment f
阅读全文
摘要:饿了么App->美食模块这个分类 可以参考:https://segmentfault.com/a/1190000015551664?utm_source=tag-newest 关键步骤:
阅读全文
摘要:github地址:https://github.com/somonus/react-native-echarts 官网:https://www.echartsjs.com/zh/tutorial.html#5%20分钟上手%20ECharts 安装之后因为rn版本问题,可能会抱错,关于WebView
阅读全文
摘要:参考资料 :https://www.jianshu.com/p/1e75bd387aa0 要点: 1. async function(){} 将普通函数转换成Promise 2. await 表达式/函数 强制等待后面的结果返回再继续 3. await 只能用在async function(){}中
阅读全文
摘要:关键词:Promise Promise.all Promise是什么?=> https://www.runoob.com/w3cnote/es6-promise.html Promise.all 和 Promise.race => https://www.jianshu.com/p/7e60fc1b
阅读全文
摘要:前端有一个todo app非常适合入门练手 react-native 实现todo app:https://github.com/nwgdegitHub/TODO_RN.git
阅读全文
摘要:常用插件: react-native-check-box 复选框react-native-sortable-listview 列表拖拽排序 react-native-doc-viewer 预览组件 react-native-img-cache 图片缓存 依赖于react-native-fetch-b
阅读全文