mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-09 13:37:58 +08:00
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: https://github.com/facebook/react-native/pull/23535 Differential Revision: D14143005 Pulled By: cpojer fbshipit-source-id: 4ead5f073690e627b4a4bbe3fa5a6cb5af46b589