Comments (9)
Same issue here. It seems to be an issue at the native level. The iOS implementation of this relies on the PDFViewWillClickOnLink
of the delegate - whatever that means (I am not very familiar with underlying native patterns) - and it does not get triggered when I tap on a link. So far, I've put logs in a couple of places in the native code in RNPDFPdfView.mm
, and am seeing:
- Logging at
notifyOnChangeWithMessage
- which sends all messages to the JS side - is working - Logging at
handleSingleTap
- is working, firing every time I single-tap, whether over a link or not - Logging at
PDFViewWillClickOnLink
- is not working.
This is with:
iOS 17.5.1
react-native 0.74.2
react-native-pdf 6.7.5
react-native-blob-util 0.19.9
And to be clear - I am not using Expo at all.
from react-native-pdf.
Any luck on this?
from react-native-pdf.
Please make sure you have installed the right version of @config-plugins/react-native-blob-util,@config-plugins/react-native-pdf, react native pdf and RN.
![image](https://private-user-images.githubusercontent.com/9334042/341617706-85459814-12b0-4fc6-9519-1525a10cb750.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMzNjEwMjIsIm5iZiI6MTcyMzM2MDcyMiwicGF0aCI6Ii85MzM0MDQyLzM0MTYxNzcwNi04NTQ1OTgxNC0xMmIwLTRmYzYtOTUxOS0xNTI1YTEwY2I3NTAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTFUMDcxODQyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NGQzNzNmYzlmOWRjYjYwMzNiZWU2ZmRjYjQ4OGE4NWVjNzkyOWNmNzM3MGEwZDM3NGFiMjU2OTEyZDZhNjVhMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.hVX9TZ_9kZhp2de39B7FLxlYi_GhjtIxAqSIXnImB8U)
![image](https://private-user-images.githubusercontent.com/9334042/341617797-672da8f1-8848-417f-94d6-a6e6fd2ab268.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMzNjEwMjIsIm5iZiI6MTcyMzM2MDcyMiwicGF0aCI6Ii85MzM0MDQyLzM0MTYxNzc5Ny02NzJkYThmMS04ODQ4LTQxN2YtOTRkNi1hNmU2ZmQyYWIyNjgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTFUMDcxODQyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDYwYjdkZWZlZjc5ZjYxNWRjYjFhNWNjYTUxNjk5ODA5NjQ4YmY5NDk5YjQxMDIxZTFiZjBkZmExNjU3NDRmYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.N_kJUtXu9JH7wzjMhr7qKxCjZgRUUA2qK_gbbGinZJU)
from react-native-pdf.
@jasonxbliu we are using the cli.
"react-native": "0.73.6",
"react-native-pdf": "^6.7.5",
"react-native-blob-util": "^0.19.9",
from react-native-pdf.
@jasonxbliu we are using the cli.
"react-native": "0.73.6", "react-native-pdf": "^6.7.5", "react-native-blob-util": "^0.19.9",
What is the version of expo and plugin? As the screenshot I posted, as you use the version of 6.7.5, the right version of expo is expo51. I have encountered the same issue and fixed it until I made all the related version compatible. You can check it again. @TajGoud
from react-native-pdf.
I'm using the correct versions. But still facing the issue
from react-native-pdf.
@jasonxbliu we are using the cli.
"react-native": "0.73.6", "react-native-pdf": "^6.7.5", "react-native-blob-util": "^0.19.9",
What is the version of expo and plugin? As the screenshot I posted, as you use the version of 6.7.5, the right version of expo is expo51. I have encountered the same issue and fixed it until I made all the related version compatible. You can check it again. @TajGoud
Am not using expo using cli version is 12.3.2 @jasonxbliu
from react-native-pdf.
Related Issues (20)
- Tried to access a JS module before the React instance was fully set up. HOT 8
- Pdf not loading first time in Android ,gives error open failed:ENONT HOT 8
- rn 0.73.8版本,android上不显示红色盖章和姓名
- Links on iOS not working due to code change introduced with the new `enableDoubleTapZoom` option HOT 6
- pdf file not fully 100% loaded... stops after 80-90% HOT 5
- Android: Does not work with any remote URL - Possible unhandled promise rejection (id: 2): Error: /data/user/... open failed: ENOENT (No such file or directory) HOT 12
- Cannot scroll inside GestureDetector on Android HOT 1
- Android crash: Segmentation violation (invalid memory reference)
- Android: Native crash app error "PDF renderer" HOT 2
- Annotations for Android HOT 2
- PDF zooming not working as expected for iOS
- scrollEnabled property is missing as available prop for pdf viewer
- blank screen (android 11 and above) HOT 2
- Android, v6.7.5 can not view fully content of document
- Zooming with singlepage true HOT 1
- iOS only - Exception thrown while executing UI block: - [RNPDFPdfView setOnClick:]: unrecognized selector send to instance HOT 2
- for expo 51 react-native-pdf is not working HOT 2
- Unable to open mach-O at path: default.metallib Error:2
- Landscape View cripples for whole App after PDF file is opened
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-pdf.