react-native-pdf
react-native-pdf copied to clipboard
Can not render PDF file on iOS - New Architecture
After I enabled new architecture, pdf file can not render on iOS
"react-native-blob-util": "0.21.3",
"react-native-pdf": "6.6.2",
Code
<Pdf
source={{
uri: 'https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf',
}}
enableAnnotationRendering={true}
scrollEnabled
onError={e => {
console.log('e: ', e);
}}
onLoadProgress={(percent: number) => {
console.log({ percent });
}}
onLoadComplete={numberOfPages => {
console.log(`Number of pages: ${numberOfPages}`);
}}
style={{
flex: 1,
width: Dimensions.get('window').width,
height: Dimensions.get('window').height,
}}
/>
npx react-native info
System:
OS: macOS 14.6
CPU: (8) arm64 Apple M3
Memory: 90.25 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 18.20.4
path: ~/.nvm/versions/node/v18.20.4/bin/node
Yarn:
version: 1.22.22
path: /opt/homebrew/bin/yarn
npm:
version: 10.7.0
path: ~/.nvm/versions/node/v18.20.4/bin/npm
Watchman:
version: 2025.03.10.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods: Not Found
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.0
- iOS 18.0
- macOS 15.0
- tvOS 18.0
- visionOS 2.0
- watchOS 11.0
Android SDK:
Android NDK: 27.0.11902837-beta2
IDEs:
Android Studio: 2024.2 AI-242.23339.11.2421.12483815
Xcode:
version: 16.0/16A242d
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.14
path: /usr/bin/javac
Ruby:
version: 2.7.5
path: /Users/dule/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli":
installed: 15.0.1
wanted: 15.0.1
react:
installed: 18.3.1
wanted: 18.3.1
react-native:
installed: 0.76.9
wanted: 0.76.5
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: true
@dule-vikki were you able to fix this issue?
Might this be related to #919 ?