From b7bf21cf9d87cdc74796145b3ab453ce52f05abc Mon Sep 17 00:00:00 2001 From: tianyili Date: Thu, 11 May 2023 16:44:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20[=E7=94=9F=E5=91=BD=E5=91=A8=E6=9C=9F]?= =?UTF-8?q?=E7=A7=BB=E9=99=A4componentWillMount?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PopupStub.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PopupStub.js b/PopupStub.js index f2574dc..1d25de8 100644 --- a/PopupStub.js +++ b/PopupStub.js @@ -119,7 +119,7 @@ export default class PopupStub extends Component { this._onBackAndroid = this._onBackAndroid.bind(this) } - componentWillMount () { + componentDidMount () { if (Platform.OS === 'android') { BackHandler.addEventListener('hardwareBackPress', this._onBackAndroid) } -- Gitee