11 2019 档案

摘要:import React, { Component } from 'react'; import { View, Text, Image, StyleSheet, TouchableOpacity, NativeModules, Platform, StatusBar, ScrollView, Al 阅读全文
posted @ 2019-11-27 10:26 james_liang 阅读(1151) 评论(0) 推荐(0)
摘要:A页面向B页面传递参数: A页面代码如下: 事件方法toOrderDetail() toOrderDetail(item){ //this.props.navigation.push('跳转的目标页面', { 参数名: 参数值 }) this.props.navigation.push('B', { 阅读全文
posted @ 2019-11-21 17:21 james_liang 阅读(3806) 评论(0) 推荐(0)
摘要:子组件A代码如下: 点击子组件事件(selectItem)获取所需传递的参数 selectItem(item, index) { this.props.getChildrenMsg(item.skill_name) this.props.callBack() } 父组件B代码如下: import A 阅读全文
posted @ 2019-11-20 19:09 james_liang 阅读(282) 评论(0) 推荐(0)