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
  */
58
  */
59
 export default class ProximoListScreen extends React.Component<Props, State> {
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
     state = {
68
     state = {
64
         navData: this.props.navigation.getParam('data', []).sort(sortPrice),
69
         navData: this.props.navigation.getParam('data', []).sort(sortPrice),
226
             this.modalRef.current.open();
231
             this.modalRef.current.open();
227
         }
232
         }
228
     }
233
     }
234
+
229
     render() {
235
     render() {
230
         const nav = this.props.navigation;
236
         const nav = this.props.navigation;
231
         const navType = nav.getParam('type', '{name: "Error"}');
237
         const navType = nav.getParam('type', '{name: "Error"}');

Loading…
Cancel
Save