Changed componentwillmount (deprecated) to componentdidmount
This commit is contained in:
parent
104e212b2c
commit
562c4ddded
5 changed files with 4 additions and 3 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
node_modules
|
||||
BIN
dist/1.0.0/incentro.Backhandler.mpk
vendored
BIN
dist/1.0.0/incentro.Backhandler.mpk
vendored
Binary file not shown.
|
|
@ -111,7 +111,7 @@ class Backhandler extends react__WEBPACK_IMPORTED_MODULE_0__["Component"] {
|
|||
render() {
|
||||
return (Object(react__WEBPACK_IMPORTED_MODULE_0__["createElement"])(react_native__WEBPACK_IMPORTED_MODULE_1__["View"], null));
|
||||
}
|
||||
componentWillMount() {
|
||||
componentDidMount() {
|
||||
react_native__WEBPACK_IMPORTED_MODULE_1__["BackHandler"].addEventListener('hardwareBackPress', this.handleBackButtonClick);
|
||||
}
|
||||
componentWillUnmount() {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -23,7 +23,7 @@ export class Backhandler extends Component<BackhandlerProps<CustomStyle>> {
|
|||
)
|
||||
}
|
||||
|
||||
componentWillMount() {
|
||||
componentDidMount() {
|
||||
BackHandler.addEventListener('hardwareBackPress', this.handleBackButtonClick);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue