Closed karunkumark closed 4 years ago
I believe it should be this.refs.phone.getPickerData()
doesn't work either
My bad. It depends on how it's implemented in your code. Please post some code for us to diagnose the issue.
i fixed it by just adding an if clause ...
componentDidMount = () => { if (this.phone) this.setState({pickerData: this.phone.getPickerData()}); }
I am Getting undefined in the code