Added services section title to match current section

This commit is contained in:
Arnaud Vergnet 2020-04-22 10:49:54 +02:00
parent 49fa8a82e3
commit 3f945fca7a

View file

@ -36,6 +36,9 @@ class ServicesSectionScreen extends React.Component<Props> {
this.finalDataset = this.props.route.params.data;
// reset params to prevent infinite loop
this.props.navigation.dispatch(CommonActions.setParams({data: null}));
this.props.navigation.setOptions({
headerTitle: this.finalDataset.title,
});
}
}
}