随笔分类 - react
摘要:react-native-fs文件创建、查看、上传、下载 https://www.jianshu.com/p/d62fc3ede61c
阅读全文
摘要:RN-Style 详细说明 https://www.jianshu.com/p/2b4368569c03 RN常用表达式 https://www.jianshu.com/p/4fe7cb89665e
阅读全文
摘要:server { listen 8080; # server_name your.domain.com; root /home/root/react-demo/dist; index index.html index.htm; location / { try_files $uri $uri/ /i
阅读全文
摘要:const TabNavigator = createBottomTabNavigator({ ...模块, ...模块, },{ navigationOptions:{ header:null }
阅读全文
摘要:百度搜了3天都没一个正确的答案,最后还是google查到的: "react-navigation": "^4.0.10", "react-navigation-stack": "^1.9.4", import { createStackNavigator ,StackViewStyleInterpo
阅读全文
摘要:react-native-cli 安装 1.按照依赖https://reactnative.cn/docs/getting-started.html 2.查看设备是否连接adb devices 3.运行react-native init program-name #初始化项目npm start(re
阅读全文
摘要:一、错误日志:Warning: Failed child context type: Invalid child context virtualizedCell.cellKey of type number supplied to CellRenderer, expected string.这个错误
阅读全文
摘要:React Native采用一中全新的布局方式:FlexBox(弹性布局)。可以很方便的实现各种复杂布局,是全新的针对web和移动开发布局的一种实现方式。 何为FlexBox? 完整名称为:the flexible box Module,旨在通过弹性的方式来对齐和分布容器中的组件。Flexbuju的
阅读全文
摘要:今天在写 React 时,在 render 的return中既然不能使用if判断语句,所以就整理一些在react中使用if 的方式,可根据自己的实际情况选择: 方式一: class LLL extends React.Component { constructor(props){ super(pro
阅读全文