react-native
桐溪漂流
一个web前端小菜鸟
展开
-
react-native-camera安装记录
一、安装依赖yarn add react-native-camera二、link到native// linkyarn react-native link react-native-camera三、build.gradle调整// android/app/build.gradle 添加如下android { defaultConfig { missingDimensionStrategy 'react-native-camera', 'general'原创 2021-04-22 14:42:36 · 231 阅读 · 0 评论 -
react-native-image-picker的使用简单总结
一、依赖安装依赖 react-native-camerayarn add react-native-image-pickerreact-native link react-native-image-picker二、调用相机import { launchCamera } from 'react-native-image-picker';launchCamera({ mediaType: 'photo', maxWidth: 1000,// 设置选择照片的大小,设置小的话会相应的进原创 2021-04-14 14:33:05 · 4543 阅读 · 6 评论 -
react-native初体验的总结
一、前提知识点RN中文网链接 https://www.react-native.cn/docs/getting-startedhtml、JavaScript、css基础es6+等新的概念react、redux相关知识如果需要用ts语法,还需要了解typescript相关知识点数据请求,官方中有推荐的,我这里选择axios二、开发前后相关的一些配置react-native相关知识点可以参考官方文档进行学习,总结了几点基本的RN开发需要的环境(mac,windows),参考官方文档即可原创 2021-03-29 10:33:37 · 156 阅读 · 0 评论 -
react-native-debugger的使用整理
react-native-debugger的使用整理利用react-native-debugger可以在react-native项目中监听和api交互的数据,搜集过程中经历了比较长的时间,现在一些感受整理如下,希望能帮助到需要的人一、下载点击下面链接进行下载release版本,根据需要安装https://github.com/jhen0409/react-native-debugger/releases二、运行react-native-debugger默认打开如下图三、切换端口debug原创 2021-03-22 14:49:28 · 3580 阅读 · 1 评论 -
react-native-linear-gradient在react-native实现线性渐变
react-native-linear-gradient在react-native实现线性渐变一、安装依赖与关联// 安装依赖yarn add react-native-linear-gradient// 自动进行关联yarn react-native link react-native-linear-gradient二、线性渐变的使用默认的线性渐变-从上到下栗子import React from 'react';import { View, Text } from 'react原创 2021-03-18 12:07:19 · 2379 阅读 · 0 评论