From 84ad66e3035c638200c909d454fe4ed19930adf2 Mon Sep 17 00:00:00 2001 From: Acellam Guy Date: Wed, 20 Dec 2017 15:48:13 +0300 Subject: [PATCH] notify call back of load failure When the google fails to load due to no internet, the call back should be notified so that appropriate UI can be shown --- src/google_map.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/google_map.js b/src/google_map.js index 28c6a452..3cc6b78f 100644 --- a/src/google_map.js +++ b/src/google_map.js @@ -757,6 +757,8 @@ export default class GoogleMap extends Component { }); }) .catch(e => { + // notify callback of load failure + this._onGoogleApiLoaded({ map: null, maps: null }); console.error(e); // eslint-disable-line no-console throw e; });