Browse Source

Fixed flow error

keplyx 4 years ago
parent
commit
65f69a8748
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      screens/Proximo/ProximoListScreen.js

+ 7
- 1
screens/Proximo/ProximoListScreen.js View File

@@ -58,7 +58,12 @@ type State = {
58 58
  */
59 59
 export default class ProximoListScreen extends React.Component<Props, State> {
60 60
 
61
-    modalRef = React.createRef();
61
+    modalRef:  { current: null | Modalize };
62
+
63
+    constructor(props: any) {
64
+        super(props);
65
+        this.modalRef = React.createRef();
66
+    }
62 67
 
63 68
     state = {
64 69
         navData: this.props.navigation.getParam('data', []).sort(sortPrice),
@@ -226,6 +231,7 @@ export default class ProximoListScreen extends React.Component<Props, State> {
226 231
             this.modalRef.current.open();
227 232
         }
228 233
     }
234
+
229 235
     render() {
230 236
         const nav = this.props.navigation;
231 237
         const navType = nav.getParam('type', '{name: "Error"}');

Loading…
Cancel
Save