Skip to content
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.

previewDocument does nothing on ipad #311

Closed
steveliles opened this issue Apr 4, 2017 · 0 comments
Closed

previewDocument does nothing on ipad #311

steveliles opened this issue Apr 4, 2017 · 0 comments

Comments

@steveliles
Copy link
Contributor

steveliles commented Apr 4, 2017

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"

steveliles added a commit to steveliles/react-native-fetch-blob that referenced this issue Apr 4, 2017
…position of the touch event to set the origin appropriately
steveliles added a commit to steveliles/react-native-fetch-blob that referenced this issue Apr 4, 2017
steveliles added a commit to steveliles/react-native-fetch-blob that referenced this issue Apr 4, 2017
wkh237 pushed a commit that referenced this issue Apr 26, 2017
@wkh237 wkh237 closed this as completed May 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants