[ReactNative] Migrate navigator.geolocation to open source

This commit is contained in:
Christopher Chedeau
2015-02-28 20:46:42 -08:00
parent c352cb1c9a
commit 878bc9d491
8 changed files with 374 additions and 0 deletions

View File

@@ -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();