会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
精通 IOS,Android,Java,Php,Net,前端,等各种尖端科技, 熟知军事战略,大国博弈,生命演化,宇宙尽头,别问为什么,AI会等于我会,AI不会我也不会。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
20
21
22
23
24
25
26
27
28
···
44
下一页
2022年9月5日
react-native类父组件调用类子组件的方法
摘要: import React, {Component} from 'react'; import {Text, View, TouchableOpacity} from 'react-native'; export default class Parent extends Component { onR
阅读全文
posted @ 2022-09-05 17:58 龙卷风吹毁停车场
阅读(132)
评论(0)
推荐(0)
2022年9月2日
react-native 类父组件调用子函数组件的方法
摘要: 父组件 class 类组件, 关键代码我用红色部部分标记 import React from "react"; import { View,Text} from "react-native"; import HomeModalChilder from "../../components/homeMo
阅读全文
posted @ 2022-09-02 18:22 龙卷风吹毁停车场
阅读(227)
评论(0)
推荐(0)
react-native 实现阴影效果
摘要: github地址: https://github.com/SrBrahma/react-native-shadow-2安装: yarn add react-native-svg react-native-shadow-2 使用: import { Shadow } from 'react-nativ
阅读全文
posted @ 2022-09-02 14:44 龙卷风吹毁停车场
阅读(250)
评论(0)
推荐(0)
react-native mobx状态管理
摘要: 安装依赖 mobx 核心库 mobx-react 方便在react中使用mobx技术的库 @babel/plugin-proposal-decorators 让rn项目支持es7的装饰器语法 安装: yarn add mobx mobx-react @babel/plugin-proposal-de
阅读全文
posted @ 2022-09-02 14:37 龙卷风吹毁停车场
阅读(138)
评论(0)
推荐(0)
react-native Teaset微提示
摘要: github 官方地址: https://github.com/magicismight/react-native-root-toast 安装: npm install react-native-root-toast 详细使用参考文档
阅读全文
posted @ 2022-09-02 14:31 龙卷风吹毁停车场
阅读(20)
评论(0)
推荐(0)
2022年8月31日
react-native 遍历本地图片地址,及避坑
摘要: 自定义的格式如代码中所示: require不能放在标签上 ListImage=()=>{ let ImageDate = [ { url: require('../../assets/temporaryAvatar/Ellipse.png') } ] return( <View> { Object.
阅读全文
posted @ 2022-08-31 16:26 龙卷风吹毁停车场
阅读(131)
评论(0)
推荐(0)
2022年8月30日
react-native-svg 使用
摘要: github:https://github.com/react-native-svg/react-native-svg安装: yarn add react-native-svg@12.4.4 react-native-svg-uri 注意: 如果运行 yarn android 报错 Task :re
阅读全文
posted @ 2022-08-30 18:33 龙卷风吹毁停车场
阅读(312)
评论(0)
推荐(0)
2022年8月29日
react-native 子组件中进行路由跳转
摘要: 父组件,将this.props.navigation.navigate传入到子组件中 <CodeField push={this.props.navigation.navigate}></CodeField> 子组件,使用this.props.push('Home')来跳转 this.props.p
阅读全文
posted @ 2022-08-29 22:26 龙卷风吹毁停车场
阅读(52)
评论(0)
推荐(0)
react-native 验证码静态插件
摘要: yarn add react-native-confirmation-code-field 文档地址: https://www.npmjs.com/package/react-native-confirmation-code-field import React, {Component} from
阅读全文
posted @ 2022-08-29 21:20 龙卷风吹毁停车场
阅读(102)
评论(0)
推荐(0)
react-native点击子组件触发父组件的方法
摘要: class类组件 父 <THButton clickPress={()=>alert(1)} style={{borderRadius: 20}}>获取验证码</THButton> btnSubimt=()=>{ alert(11) } 子 <TouchableOpacity onPress={th
阅读全文
posted @ 2022-08-29 14:29 龙卷风吹毁停车场
阅读(156)
评论(0)
推荐(0)
上一页
1
···
20
21
22
23
24
25
26
27
28
···
44
下一页
公告