fix(rn,recording) fix recording dialog state not updating
This commit is contained in:
parent
0b93569df2
commit
dc96324d3b
|
@ -44,6 +44,8 @@ class StartRecordingDialog extends AbstractStartRecordingDialog<Props> {
|
||||||
* @returns {void}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
super.componentDidMount();
|
||||||
|
|
||||||
const { navigation, t } = this.props;
|
const { navigation, t } = this.props;
|
||||||
|
|
||||||
navigation.setOptions({
|
navigation.setOptions({
|
||||||
|
@ -64,7 +66,9 @@ class StartRecordingDialog extends AbstractStartRecordingDialog<Props> {
|
||||||
* @inheritdoc
|
* @inheritdoc
|
||||||
* @returns {void}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
componentDidUpdate() {
|
componentDidUpdate(prevProps) {
|
||||||
|
super.componentDidUpdate(prevProps);
|
||||||
|
|
||||||
const { navigation, t } = this.props;
|
const { navigation, t } = this.props;
|
||||||
|
|
||||||
navigation.setOptions({
|
navigation.setOptions({
|
||||||
|
|
Loading…
Reference in New Issue