react-native-pdf-jsi 4.4.0 → 4.4.1
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.
|
@@ -28,6 +28,10 @@ import com.facebook.react.bridge.ReadableArray;
|
|
|
28
28
|
import com.facebook.react.bridge.ReadableMap;
|
|
29
29
|
import android.os.Looper;
|
|
30
30
|
|
|
31
|
+
import io.legere.pdfiumandroid.util.Config;
|
|
32
|
+
import io.legere.pdfiumandroid.util.ConfigKt;
|
|
33
|
+
import io.legere.pdfiumandroid.util.AlreadyClosedBehavior;
|
|
34
|
+
import io.legere.pdfiumandroid.DefaultLogger;
|
|
31
35
|
|
|
32
36
|
import com.facebook.react.uimanager.ThemedReactContext;
|
|
33
37
|
import com.facebook.react.uimanager.UIManagerHelper;
|
|
@@ -109,6 +113,7 @@ public class PdfView extends PDFView implements OnPageChangeListener,OnLoadCompl
|
|
|
109
113
|
|
|
110
114
|
public PdfView(Context context, AttributeSet set){
|
|
111
115
|
super(context, set);
|
|
116
|
+
ConfigKt.setPdfiumConfig(new Config(new DefaultLogger(), AlreadyClosedBehavior.IGNORE));
|
|
112
117
|
highlightPaint.setColor(HIGHLIGHT_COLOR);
|
|
113
118
|
highlightPaint.setStyle(Paint.Style.FILL);
|
|
114
119
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-pdf-jsi",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.1",
|
|
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",
|