react-native-pdf-jsi 2.2.6 → 2.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -2
- package/package.json +5 -2
- package/react-native-pdf-jsi.podspec +31 -0
package/README.md
CHANGED
|
@@ -35,6 +35,17 @@ Starting November 1, 2025, Google Play will require apps to support 16KB page si
|
|
|
35
35
|
- ✅ **Google Play Approved** - Meets all current and future requirements
|
|
36
36
|
- ✅ **Drop-in Replacement** - Easy migration from existing libraries
|
|
37
37
|
|
|
38
|
+
## 🎉 Version 2.2.7 - iOS Codegen Fix & New Architecture Support!
|
|
39
|
+
|
|
40
|
+
**Critical fix for React Native 0.79+ compatibility and iOS codegen integration!**
|
|
41
|
+
|
|
42
|
+
### 🚀 **What's New in v2.2.7:**
|
|
43
|
+
- **🔧 iOS Component Provider** - Added ios.componentProvider to codegenConfig for React Native 0.79+ compatibility
|
|
44
|
+
- **✅ Codegen Compliance** - Resolved [DEPRECATED] warning during pod install
|
|
45
|
+
- **✅ New Architecture Ready** - Full compatibility with React Native's New Architecture
|
|
46
|
+
- **✅ Podspec Fix** - Corrected podspec filename reference in package.json
|
|
47
|
+
- **✅ Future-Proof** - Ensures compatibility with future React Native versions
|
|
48
|
+
|
|
38
49
|
## 🎉 Version 2.2.6 - Enhanced iOS JSI Integration!
|
|
39
50
|
|
|
40
51
|
**Major improvements to iOS JSI functionality and method forwarding!**
|
|
@@ -932,7 +943,21 @@ const Pdf = PdfModule.default;
|
|
|
932
943
|
|
|
933
944
|
## 📝 Changelog
|
|
934
945
|
|
|
935
|
-
### v2.2.
|
|
946
|
+
### v2.2.7 (2025) - Latest ✅ IOS CODEGEN FIX & NEW ARCHITECTURE SUPPORT
|
|
947
|
+
|
|
948
|
+
#### 🔧 **iOS Codegen & New Architecture Fixes**
|
|
949
|
+
- **Component Provider**: Added `ios.componentProvider: "RNPDFPdfView"` to codegenConfig in package.json
|
|
950
|
+
- **Codegen Compliance**: Resolved React Native 0.79+ deprecation warning: "react-native-pdf-jsi should add the 'ios.componentProvider' property in their codegenConfig"
|
|
951
|
+
- **Podspec Reference**: Fixed podspec filename from `react-native-pdf.podspec` to `react-native-pdf-jsi.podspec` in files array
|
|
952
|
+
- **New Architecture Ready**: Full compatibility with React Native's New Architecture and Fabric components
|
|
953
|
+
|
|
954
|
+
#### 📊 **Compatibility Improvements**
|
|
955
|
+
- **React Native 0.79+**: Full support for latest React Native versions
|
|
956
|
+
- **Pod Install Fix**: No more deprecation warnings during `pod install`
|
|
957
|
+
- **Codegen Integration**: Proper iOS component provider configuration for codegen system
|
|
958
|
+
- **Future-Proof**: Ensures compatibility with upcoming React Native releases
|
|
959
|
+
|
|
960
|
+
### v2.2.6 (2025) - ✅ ENHANCED IOS JSI INTEGRATION
|
|
936
961
|
|
|
937
962
|
#### 🚀 **iOS JSI Enhancements**
|
|
938
963
|
- **JSI Method Declarations**: Added comprehensive JSI method declarations in PDFJSIManager.h
|
|
@@ -1566,7 +1591,7 @@ For issues and questions:
|
|
|
1566
1591
|
|
|
1567
1592
|
*Transform your PDF viewing experience with enterprise-grade performance and reliability.*
|
|
1568
1593
|
|
|
1569
|
-
**v2.2.
|
|
1594
|
+
**v2.2.7 - iOS Codegen Fix & New Architecture Support**
|
|
1570
1595
|
**Copyright (c) 2025-present, Punith M (punithm300@gmail.com). Enhanced PDF JSI Integration. All rights reserved.**
|
|
1571
1596
|
|
|
1572
1597
|
*Original work Copyright (c) 2017-present, Wonday (@wonday.org). All rights reserved.*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-pdf-jsi",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.7",
|
|
4
4
|
"summary": "High-performance React Native PDF viewer with JSI acceleration - up to 80x faster than traditional bridge",
|
|
5
5
|
"description": "🚀 Ultra-fast React Native PDF viewer with JSI (JavaScript Interface) integration for maximum performance. Features lazy loading, smart caching, progressive loading, and zero-bridge overhead operations. Perfect for large PDF files with 30-day persistent cache and advanced memory optimization. Google Play 16KB page size compliant for Android 15+. Supports iOS, Android, and Windows platforms.",
|
|
6
6
|
"main": "index.js",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"PdfView.js",
|
|
91
91
|
"PdfViewFlatList.js",
|
|
92
92
|
"PinchZoomView.js",
|
|
93
|
-
"react-native-pdf.podspec",
|
|
93
|
+
"react-native-pdf-jsi.podspec",
|
|
94
94
|
"fabric/",
|
|
95
95
|
"README_JSI.md",
|
|
96
96
|
"INTEGRATION_GUIDE.md"
|
|
@@ -101,6 +101,9 @@
|
|
|
101
101
|
"jsSrcsDir": "./fabric",
|
|
102
102
|
"android": {
|
|
103
103
|
"javaPackageName": "org.wonday.pdf"
|
|
104
|
+
},
|
|
105
|
+
"ios": {
|
|
106
|
+
"componentProvider": "RNPDFPdfView"
|
|
104
107
|
}
|
|
105
108
|
}
|
|
106
109
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
require 'json'
|
|
3
|
+
|
|
4
|
+
package = JSON.parse(File.read(File.join(__dir__, 'package.json'), encoding: 'utf-8'))
|
|
5
|
+
|
|
6
|
+
fabric_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1'
|
|
7
|
+
|
|
8
|
+
Pod::Spec.new do |s|
|
|
9
|
+
s.name = package['name']
|
|
10
|
+
s.version = package['version']
|
|
11
|
+
s.summary = package['summary']
|
|
12
|
+
s.description = package['description']
|
|
13
|
+
s.author = { package['author']['name'] => package['author']['email'] }
|
|
14
|
+
s.license = package['license']
|
|
15
|
+
s.homepage = package['homepage']
|
|
16
|
+
s.source = { :git => 'https://github.com/126punith/react-native-pdf-enhanced.git', :tag => "v#{s.version}" }
|
|
17
|
+
s.requires_arc = true
|
|
18
|
+
s.framework = "PDFKit"
|
|
19
|
+
|
|
20
|
+
if fabric_enabled
|
|
21
|
+
s.platforms = { ios: '11.0', tvos: '11.0' }
|
|
22
|
+
s.source_files = 'ios/**/*.{h,m,mm,cpp}'
|
|
23
|
+
s.requires_arc = true
|
|
24
|
+
install_modules_dependencies(s)
|
|
25
|
+
|
|
26
|
+
else
|
|
27
|
+
s.platform = :ios, '8.0'
|
|
28
|
+
s.source_files = 'ios/**/*.{h,m,mm}'
|
|
29
|
+
s.dependency 'React-Core'
|
|
30
|
+
end
|
|
31
|
+
end
|