
react
桐溪漂流
一个web前端小菜鸟
展开
-
umijs中实现keep-alive功能
利用umi-plugin-keep-alive实现keep-alive效果,在h5页面中实现返回的时候不刷新返回页面的效果。原创 2022-08-30 10:41:03 · 3402 阅读 · 0 评论 -
umijs项目-国际化语言配置
配置.umirc.tsimport { defineConfig } from 'umi';export default defineConfig({ // 启用layout配置 layout: { name: 'ulives-library-web', locale: true, // layout中启用locale配置 layout: 'side', }, // 路由配置 routes: [ {原创 2022-03-03 10:03:14 · 2161 阅读 · 0 评论 -
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 · 297 阅读 · 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 · 4024 阅读 · 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 · 2997 阅读 · 0 评论