Update RCTNetworking, RCTNetInfo and RCTLocationManager to use new events system

Summary: Updated networking and geolocation to use the new events system.

Reviewed By: javache

Differential Revision: D3339945

fbshipit-source-id: f1332fb2aab8560e4783739e223c1f31d583cfcf
This commit is contained in:
Nick Lockwood
2016-05-24 10:26:33 -07:00
committed by Facebook Github Bot 3
parent 71bf8a3e48
commit 3f08fe4b7f
27 changed files with 229 additions and 340 deletions

View File

@@ -88,8 +88,11 @@ continueUserActivity:(NSUserActivity *)userActivity
- (void)handleOpenURLNotification:(NSNotification *)notification
{
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
[_bridge.eventDispatcher sendDeviceEventWithName:@"openURL"
body:notification.userInfo];
#pragma clang diagnostic pop
}
RCT_EXPORT_METHOD(openURL:(NSURL *)URL