export default class Base extends Component<Props> {
constructor(props) {
super(props);
console.log("Base this",this)//this showToast renderModal
}
/*
*Toast
* */
showToast=(msg)=>{
console.log("showToast",this)
}
/**
*
* */
renderModal(contentView, visible, close, animation, customerlayout){
console.log("renderModal",this)
}
componentDidMount() {
}
componentWillUnmount() {
}
}
when used in subclasses
super.renderModal("hahahhah")//
super.showToast("hahahhah")//
basethis
ask for a detailed explanation