infoxicator / react-native-star-prnt

React-Native bridge to communicate with Star Micronics Bluetooth/LAN Printers
MIT License
67 stars 65 forks source link

Added the ability to parse a URI with a file scheme on iOS #31

Closed dnlowman closed 5 years ago

dnlowman commented 5 years ago

The current implementation on iOS does not appear to support parsing a URI with a file scheme whereas the Android implementation does. This change will fallback to attempting to parse and re-invoke dataWithContentsOfURL with a file based URL if URLWithString fails due to urlString being a file path.