Skip to content

Commit 1f6d7ad

Browse files
author
Marina Sheenkova
committed
rename all deprecated lifecycles to their new names
1 parent f73dc41 commit 1f6d7ad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/HTML.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ export default class HTML extends PureComponent {
7777
};
7878
}
7979

80-
componentWillMount () {
80+
UNSAFE_componentWillMount () {
8181
this.generateDefaultStyles();
8282
}
8383

8484
componentDidMount () {
8585
this.registerDOM();
8686
}
8787

88-
componentWillReceiveProps (nextProps) {
88+
UNSAFE_componentWillReceiveProps (nextProps) {
8989
const { html, uri, renderers } = this.props;
9090

9191
this.generateDefaultStyles(nextProps.baseFontStyle);

src/HTMLImage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default class HTMLImage extends PureComponent {
4040
this.mounted = false;
4141
}
4242

43-
componentWillReceiveProps (nextProps) {
43+
UNSAFE_componentWillReceiveProps (nextProps) {
4444
this.getImageSize(nextProps);
4545
}
4646

0 commit comments

Comments
 (0)