diff --git a/screens/Proximo/ProximoListScreen.js b/screens/Proximo/ProximoListScreen.js index 816d30b..7b55113 100644 --- a/screens/Proximo/ProximoListScreen.js +++ b/screens/Proximo/ProximoListScreen.js @@ -58,7 +58,12 @@ type State = { */ export default class ProximoListScreen extends React.Component { - modalRef = React.createRef(); + modalRef: { current: null | Modalize }; + + constructor(props: any) { + super(props); + this.modalRef = React.createRef(); + } state = { navData: this.props.navigation.getParam('data', []).sort(sortPrice), @@ -226,6 +231,7 @@ export default class ProximoListScreen extends React.Component { this.modalRef.current.open(); } } + render() { const nav = this.props.navigation; const navType = nav.getParam('type', '{name: "Error"}');