Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
helpful error on canOpenURL for missing scheme (#23535)
Summary: iOS 9 introduced a whitelist for schemes that apps are allowed to open / check against, the current behavior of React Native is to simple return `NO` when a scheme is missing from that whitelist. It would be more helpful to throw an error with a suggested fix for the problem: ``` Unable to open URL: asos://checkout, add asos to LSApplicationQueriesSchemes in Info.plist. ``` [iOS] [Changed] - canOpenURL throws when custom scheme isn't in LSApplicationQueriesSchemes. Pull Request resolved: #23535 Differential Revision: D14143005 Pulled By: cpojer fbshipit-source-id: 4ead5f073690e627b4a4bbe3fa5a6cb5af46b589
- Loading branch information