From 65f69a8748f8f6b4d2aa8626e80b61304ed6f897 Mon Sep 17 00:00:00 2001 From: keplyx Date: Thu, 12 Sep 2019 15:01:07 +0200 Subject: [PATCH] Fixed flow error --- screens/Proximo/ProximoListScreen.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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"}');