mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-21 02:26:18 +08:00
Deploy v0.45.0
Reviewed By: samwgoldman Differential Revision: D4965967 fbshipit-source-id: 090f35efe225b1803141d3062d68e1e626907029
This commit is contained in:
committed by
Facebook Github Bot
parent
924b869f76
commit
a7009077ed
@@ -70,7 +70,7 @@ class GeolocationExample extends React.Component {
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
navigator.geolocation.clearWatch(this.watchID);
|
||||
this.watchID != null && navigator.geolocation.clearWatch(this.watchID);
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user