首页 > TAG信息列表 > clickccc

react-native 父函数组件调用类子组件的方法

import React, {Component} from 'react'; import {Text, View, TouchableOpacity} from 'react-native'; // 父 let child onRefbbb = (ref) => { child = ref } clickccc = () => { child.myName() } const Parent =()=> { r