import React, { Component } from 'react'
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity
} from 'react-native'
class Child extends Component{
myFun = ()=>{
//alert('myfun');
this.props.parentFun('minson')&&this.props.parentFun()
}
render(){
return(
const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }, welcome: { fontSize: 20, textAlign: 'center', margin: 10, }, })
AppRegistry.registerComponent('App', () => App)