expo-scroll-forwarder 1.0.0 → 1.0.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.
|
@@ -8,10 +8,14 @@ Pod::Spec.new do |s|
|
|
|
8
8
|
s.platforms = { :ios => '13.4' }
|
|
9
9
|
s.source = { git: '', tag: s.version }
|
|
10
10
|
s.static_framework = true
|
|
11
|
+
|
|
11
12
|
s.dependency 'ExpoModulesCore'
|
|
13
|
+
s.dependency 'React-Core'
|
|
14
|
+
|
|
12
15
|
s.pod_target_xcconfig = {
|
|
13
16
|
'DEFINES_MODULE' => 'YES',
|
|
14
17
|
'SWIFT_COMPILATION_MODE' => 'wholemodule'
|
|
15
18
|
}
|
|
19
|
+
|
|
16
20
|
s.source_files = "src/ios/*.{h,m,mm,swift,hpp,cpp}"
|
|
17
|
-
end
|
|
21
|
+
end
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import ExpoModulesCore
|
|
2
|
+
import React
|
|
2
3
|
|
|
3
4
|
class ExpoScrollForwarderView: ExpoView, UIGestureRecognizerDelegate {
|
|
4
5
|
var scrollViewTag: Int? {
|
|
@@ -135,4 +136,4 @@ class ExpoScrollForwarderView: ExpoView, UIGestureRecognizerDelegate {
|
|
|
135
136
|
func disableCancelGestureRecognizers() { self.cancelGestureRecognizers?.forEach { r in r.isEnabled = false } }
|
|
136
137
|
func scrollToOffset(_ offset: Int, animated: Bool = true) { self.rctScrollView?.scroll(toOffset: CGPoint(x:0,y:offset), animated:animated) }
|
|
137
138
|
func stopTimer() { self.disableCancelGestureRecognizers(); self.animTimer?.invalidate(); self.animTimer=nil }
|
|
138
|
-
}
|
|
139
|
+
}
|