This repository was archived by the owner on Mar 16, 2019. It is now read-only.
This repository was archived by the owner on Mar 16, 2019. It is now read-only.
previewDocument does nothing on ipad #311
Closed
Description
Code as below works great on iPhone:
RNFetchBlob.ios.previewDocument(this.props.path)
.then(
()=>{console.log('success')},
(err)=>{console.log(err)}
)
this.props.path
is a path to a PDF document which definitely exists, such as /Users/steve/Library/Developer/CoreSimulator/Devices/B6B8E700-D1F4-49A5-8E2C-D604D181BCAA/data/Containers/Data/Application/4526E90F-430C-452A-8FE1-C75719E4B180/Documents/pdfs/1491268861000-1491268860021825200.pdf
On iPad we see "success" in the log, but the UI to pick an application does not appear - in fact nothing happens in the UI and nothing is logged in xcode. This is repeatable on hardware and simulator for iPad's only - works fine on iPhones (hardware and simulated).
"react-native": "0.39",
"react-native-fetch-blob": "^0.10.4"