fix(rn,recording) fix recording dialog state not updating

This commit is contained in:
Saúl Ibarra Corretgé 2022-03-25 17:06:28 +01:00 committed by Saúl Ibarra Corretgé
parent 0b93569df2
commit dc96324d3b
1 changed files with 5 additions and 1 deletions

View File

@ -44,6 +44,8 @@ class StartRecordingDialog extends AbstractStartRecordingDialog<Props> {
* @returns {void}
*/
componentDidMount() {
super.componentDidMount();
const { navigation, t } = this.props;
navigation.setOptions({
@ -64,7 +66,9 @@ class StartRecordingDialog extends AbstractStartRecordingDialog<Props> {
* @inheritdoc
* @returns {void}
*/
componentDidUpdate() {
componentDidUpdate(prevProps) {
super.componentDidUpdate(prevProps);
const { navigation, t } = this.props;
navigation.setOptions({