上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 44 下一页
摘要: 默认情况下android是不支持gif和webp格式的,你需要在android/app/build.gradle 文件中根据需要手动添加以下模块 阅读全文
posted @ 2022-08-29 14:22 龙卷风吹毁停车场 阅读(173) 评论(0) 推荐(0)
摘要: 使用前先关闭debugger模式关闭谷歌,在打开调试工具,然后再打开debugger 1.使用谷歌浏览器来调试 不能查看标签结构 不能查看网络请求 2.使用rn推荐的工具react-native-debugger来调试 https://github.com/jhen0409/react-native 阅读全文
posted @ 2022-08-29 14:20 龙卷风吹毁停车场 阅读(137) 评论(0) 推荐(0)
摘要: 1、安装yarn add react-native-elements react-native-vector-icons 2、import {Icon} from ‘react-native-elements’ <Icon name=”roing” /> 注意: icon图标无法显示,需要配置 1) 阅读全文
posted @ 2022-08-29 14:16 龙卷风吹毁停车场 阅读(65) 评论(0) 推荐(0)
摘要: 放在index.js下AppRegistry.registerComponent(appName, () => App);之前 // 关闭黄色警告 console.ignoredYellowBox = ['Warning: BackAndroid is deprecated. Please use 阅读全文
posted @ 2022-08-29 14:14 龙卷风吹毁停车场 阅读(67) 评论(0) 推荐(0)
摘要: 官网地址: https://github.com/react-native-linear-gradient1.安装 yarn add react-native-linear-gradient 封装成简单的组件使用 使用 import THButton from '../../component/TH 阅读全文
posted @ 2022-08-29 14:13 龙卷风吹毁停车场 阅读(83) 评论(0) 推荐(0)
摘要: 在utils文件中新建styleKits.js import { Dimensions } from "react-native"; // 设计稿宽度 / 元素的宽度 = 手机屏幕 / 手机中的元素宽度 // =》 手机中的元素宽度 = 手机屏幕宽度 * 元素的宽度 / 设计稿的宽度 const s 阅读全文
posted @ 2022-08-29 14:00 龙卷风吹毁停车场 阅读(127) 评论(0) 推荐(0)
摘要: 新建一个request.js import axios from 'axios' import { BASE_URL } from './pathMap' const instance = axios.create({ baseURL: BASE_URL }) // 添加请求拦截器 instance 阅读全文
posted @ 2022-08-29 10:57 龙卷风吹毁停车场 阅读(522) 评论(0) 推荐(0)
摘要: /** * 开发环境下配置 * */ // webpack.config.js 配置文件 const { resolve } = require('path') // 安装node.js自带 const MtmlWebpackPlugin = require('html-webpack-plugin 阅读全文
posted @ 2022-07-07 17:31 龙卷风吹毁停车场 阅读(48) 评论(0) 推荐(0)
摘要: 找到hbuilderx安装目录:选择以管理员方式打开,在进行安装就ok了 阅读全文
posted @ 2022-07-07 10:58 龙卷风吹毁停车场 阅读(1174) 评论(0) 推荐(0)
摘要: 首先我们先认识一下常见个进制:在js中,如果要表示一个16进制的数字,则以 0x 开头如果是8进制的数字,则以 0 开头如果是2进制的数字,则以 0b 开头 举例: 16进制 0xff , 0x66 ..... 8进制 040 , 035 ..... 2进制 0b10 , 0b11 ..... 在j 阅读全文
posted @ 2022-06-28 18:33 龙卷风吹毁停车场 阅读(218) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 44 下一页