react-native-pdf-renderer 2.2.3 → 2.3.0

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.
@@ -58,6 +58,14 @@ BOOL observerAdded = NO;
58
58
  return self;
59
59
  }
60
60
 
61
+ +(BOOL)shouldBeRecycled
62
+ {
63
+ // We are disabling recycling for this native view to prevent it from being cached.
64
+ // This ensures that the PDF is reloaded every time the component is re-mounted
65
+ // or any of its props change, providing a fresh instance for each render.
66
+ return NO;
67
+ }
68
+
61
69
  - (void)dealloc
62
70
  {
63
71
  if (observerAdded) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-pdf-renderer",
3
3
  "displayName": "React-Native Pdf Renderer",
4
- "version": "2.2.3",
4
+ "version": "2.3.0",
5
5
  "description": "⚛ A zoomable, blazing fast, zero dependencies, pure native, typed PDF Renderer for Android and iOS.",
6
6
  "main": "dist",
7
7
  "react-native": "src",