maxs15 / react-native-modalbox

A <Modal/> component for react-native
MIT License
2.89k stars 505 forks source link

Using String Literals ref is depracated #222

Open josephakayesi opened 6 years ago

josephakayesi commented 6 years ago

How do I fix this issue when using the modal box please ?

abdullahizzuddiin commented 6 years ago

Insert this on your constructor constructor(props) { super(props); this.modalRef = null }

Update your ref attribute on your modal Component to ` <Modal ref={element => this.modalRef = element}

`

and use this.modalRef to access Modal's function

Source: React Documenation