class A extends Component {
constructor(props) {
this.getRef=this.getRef.bind(this);
}
getRef(input) {
this.input = input;
}
render() {
return <TextInput ref={this.getRef}/>
}
}
class A extends Component {
constructor(props) {
}
render() {
return <TextInput ref={(input)=>{this.input = input}}/>
}
}