上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 44 下一页
摘要: xxxRef.current.你的方法() 阅读全文
posted @ 2022-09-19 14:06 龙卷风吹毁停车场 阅读(24) 评论(0) 推荐(0)
摘要: import React, {Component} from 'react'; import {Text, View, TouchableOpacity} from 'react-native'; // 父 let child onRefbbb = (ref) => { child = ref } 阅读全文
posted @ 2022-09-09 10:18 龙卷风吹毁停车场 阅读(137) 评论(0) 推荐(0)
摘要: 导航使用的是 @react-navigation/native componentDidMount(){ let { navigation } = this.props navigation.addListener('beforeRemove', (e) => { e.preventDefault( 阅读全文
posted @ 2022-09-08 18:12 龙卷风吹毁停车场 阅读(466) 评论(0) 推荐(0)
摘要: 一个很棒的跨平台 React Native 日期选择器和日历组件,适用于 iOS 和 Android。最下面附带截图 https://github.com/lchenfox/react-native-common-date-picker 安装: yarn add react-native-commo 阅读全文
posted @ 2022-09-06 18:31 龙卷风吹毁停车场 阅读(907) 评论(0) 推荐(0)
摘要: 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 龙卷风吹毁停车场 阅读(118) 评论(0) 推荐(0)
摘要: 父组件 class 类组件, 关键代码我用红色部部分标记 import React from "react"; import { View,Text} from "react-native"; import HomeModalChilder from "../../components/homeMo 阅读全文
posted @ 2022-09-02 18:22 龙卷风吹毁停车场 阅读(219) 评论(0) 推荐(0)
摘要: 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 龙卷风吹毁停车场 阅读(245) 评论(0) 推荐(0)
摘要: 安装依赖 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 龙卷风吹毁停车场 阅读(128) 评论(0) 推荐(0)
摘要: github 官方地址: https://github.com/magicismight/react-native-root-toast 安装: npm install react-native-root-toast 详细使用参考文档 阅读全文
posted @ 2022-09-02 14:31 龙卷风吹毁停车场 阅读(16) 评论(0) 推荐(0)
摘要: 自定义的格式如代码中所示: require不能放在标签上 ListImage=()=>{ let ImageDate = [ { url: require('../../assets/temporaryAvatar/Ellipse.png') } ] return( <View> { Object. 阅读全文
posted @ 2022-08-31 16:26 龙卷风吹毁停车场 阅读(116) 评论(0) 推荐(0)
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 44 下一页