9 Commits
Author SHA1 Message Date
Ben Roth 319bc7ef64 Stop using umbrella React iOS header 2016-04-11 17:40:07 -07:00
James Ide 4bd250cff6 Use new Promise-based API and add canOpenURLAsync
- The Promise based API feels more robust. Also relied on RCTConvert to create NSURLs.
- canOpenURLAsync tells if a URL can be opened by the system
2015-06-10 01:52:32 -07:00
James Ide e196e326a1 Rename NT to EX 2015-06-09 19:39:05 -07:00
James Ide 115359107b Guard against UIApplicationLaunchOptionsAnnotationKey missing
If UIApplicationLaunchOptionsAnnotationKey is missing on launch, the app would crash because we'd try to put nil into a dictionary. Specifically test for that case and omit the annotation entry if there is none.
2015-05-08 02:33:12 -07:00
James Ide 6f5d647c9b Convert NSURL to string in event body (fix crash)
Sending an NSURL to JS crashes the app. Use a string instead.
2015-04-30 17:58:27 -07:00
James Ide 40f9e52365 Send an NSArray instead of an NSSet of schemes
The bridge does not support NSSet objects for now. Use NSArray instead.
2015-04-30 16:38:24 -07:00
James Ide de7ea51fd4 Lowercase the supported URL schemes, and use scheme list to determine if URL is internal
If a URL has no scheme, it is considered an internal URL. If it has a scheme, we need to lop off the trailing ":" from the protocol and then compare it against the entries in the supported scheme list.

Note that Cocoa does not automatically lowercase the supported schemes (we do this in native though) and Node's url library does.
2015-04-30 15:05:17 -07:00
James Ide 83bfe6cbcc Provide all of the in-app URL schemes handled by the current app
Read the schemes out of info.plist via NSBundle, and send them to JS in the constants dictionary. This allows the JS side to determine if a URL is an in-app URL or an external URL.
2015-04-30 15:05:05 -07:00
James Ide 2ad70567db ios -> iOS
Simple directory renaming
2015-04-30 15:05:05 -07:00