Skip to content

Commit dc26231

Browse files
committed
Fix React 16.3 warnings
1 parent eff1a79 commit dc26231

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/RNTesterApp.dom.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ class RNTesterApp extends React.Component {
5959
props: Props;
6060
state: RNTesterNavigationState;
6161

62-
componentWillMount() {
62+
UNSAFE_componentWillMount() {
6363
BackHandler.addEventListener("hardwareBackPress", this._handleBack);
6464
}
6565

6666
componentDidMount() {
67-
Linking.getInitialURL().then(url => {
67+
Linking.getInitialURL().then((url) => {
6868
AsyncStorage.getItem(APP_STATE_KEY, (err, storedString) => {
6969
const exampleAction = URIActionMap(
7070
this.props.exampleFromAppetizeParams
@@ -84,7 +84,7 @@ class RNTesterApp extends React.Component {
8484
this.setState(storedState);
8585
});
8686
});
87-
Linking.addEventListener("url", url => {
87+
Linking.addEventListener("url", (url) => {
8888
this._handleAction(URIActionMap(url));
8989
});
9090
}

0 commit comments

Comments
 (0)