forked from vergnet/application-amicale
Fixed flow error
This commit is contained in:
parent
5019377645
commit
65f69a8748
1 changed files with 7 additions and 1 deletions
|
@ -58,7 +58,12 @@ type State = {
|
|||
*/
|
||||
export default class ProximoListScreen extends React.Component<Props, State> {
|
||||
|
||||
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<Props, State> {
|
|||
this.modalRef.current.open();
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
const nav = this.props.navigation;
|
||||
const navType = nav.getParam('type', '{name: "Error"}');
|
||||
|
|
Loading…
Reference in a new issue