mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-30 22:48:23 +08:00
[ReactNative] Migrate navigator.geolocation to open source
This commit is contained in:
@@ -139,9 +139,15 @@ function setupXHR() {
|
||||
GLOBAL.fetch = require('fetch');
|
||||
}
|
||||
|
||||
function setupGeolocation() {
|
||||
GLOBAL.navigator = GLOBAL.navigator || {};
|
||||
GLOBAL.navigator.geolocation = require('GeoLocation');
|
||||
}
|
||||
|
||||
setupRedBoxErrorHandler();
|
||||
setupDocumentShim();
|
||||
setupTimers();
|
||||
setupAlert();
|
||||
setupPromise();
|
||||
setupXHR();
|
||||
setupGeolocation();
|
||||
|
||||
Reference in New Issue
Block a user