@amafil/react-native-pdf-toolkit 1.0.11 → 1.0.15

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.
@@ -55,35 +55,13 @@ RCT_EXPORT_VIEW_PROPERTY(enableTextSelection, BOOL);
55
55
  RCT_EXPORT_VIEW_PROPERTY(onTextSelectionChange, RCTBubblingEventBlock);
56
56
 
57
57
  RCT_EXPORT_METHOD(startAutoScroll:(nonnull NSNumber *)reactTag
58
- pixels:(double)pixels
58
+ dpPerSecond:(double)dpPerSecond
59
59
  resumeDelay:(double)resumeDelay)
60
60
  {
61
61
  [self.bridge.uiManager addUIBlock:^(__unused RCTUIManager *uiManager, NSDictionary<NSNumber *, UIView *> *viewRegistry) {
62
62
  RNPDFPdfView *view = (RNPDFPdfView *)viewRegistry[reactTag];
63
63
  if ([view isKindOfClass:[RNPDFPdfView class]]) {
64
- [view startAutoScroll:(CGFloat)pixels resumeDelay:(NSTimeInterval)(resumeDelay / 1000.0)];
65
- }
66
- }];
67
- }
68
-
69
- RCT_EXPORT_METHOD(stopAutoScroll:(nonnull NSNumber *)reactTag)
70
- {
71
- [self.bridge.uiManager addUIBlock:^(__unused RCTUIManager *uiManager, NSDictionary<NSNumber *, UIView *> *viewRegistry) {
72
- RNPDFPdfView *view = (RNPDFPdfView *)viewRegistry[reactTag];
73
- if ([view isKindOfClass:[RNPDFPdfView class]]) {
74
- [view stopAutoScroll];
75
- }
76
- }];
77
- }
78
-
79
- RCT_EXPORT_METHOD(startAutoScroll:(nonnull NSNumber *)reactTag
80
- pixels:(double)pixels
81
- resumeDelay:(double)resumeDelay)
82
- {
83
- [self.bridge.uiManager addUIBlock:^(__unused RCTUIManager *uiManager, NSDictionary<NSNumber *, UIView *> *viewRegistry) {
84
- RNPDFPdfView *view = (RNPDFPdfView *)viewRegistry[reactTag];
85
- if ([view isKindOfClass:[RNPDFPdfView class]]) {
86
- [view startAutoScroll:(CGFloat)pixels resumeDelay:(NSTimeInterval)(resumeDelay / 1000.0)];
64
+ [view startAutoScroll:(CGFloat)dpPerSecond resumeDelay:(NSTimeInterval)(resumeDelay / 1000.0)];
87
65
  }
88
66
  }];
89
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amafil/react-native-pdf-toolkit",
3
- "version": "1.0.11",
3
+ "version": "1.0.15",
4
4
  "summary": "A react native PDF view component",
5
5
  "description": "A react native PDF view component, support ios and android platform",
6
6
  "main": "index.js",