rozštěpen z vergnet/application-amicale
Fixed flow error
Tento commit je obsažen v:
rodič
5019377645
revize
65f69a8748
1 změnil soubory, kde provedl 7 přidání a 1 odebrání
|
|
@ -58,7 +58,12 @@ type State = {
|
||||||
*/
|
*/
|
||||||
export default class ProximoListScreen extends React.Component<Props, 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 = {
|
state = {
|
||||||
navData: this.props.navigation.getParam('data', []).sort(sortPrice),
|
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();
|
this.modalRef.current.open();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const nav = this.props.navigation;
|
const nav = this.props.navigation;
|
||||||
const navType = nav.getParam('type', '{name: "Error"}');
|
const navType = nav.getParam('type', '{name: "Error"}');
|
||||||
|
|
|
||||||
Načítání…
Odkázat v novém problému