@lodev09/react-native-true-sheet 0.12.3 → 0.13.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.
package/README.md
CHANGED
|
@@ -34,9 +34,10 @@ cd ios && pod install
|
|
|
34
34
|
|
|
35
35
|
## Documentation
|
|
36
36
|
|
|
37
|
+
- [Example](example)
|
|
37
38
|
- [Guides](https://sheet.lodev09.com/category/guides)
|
|
38
39
|
- [Reference](https://sheet.lodev09.com/category/reference)
|
|
39
|
-
- [
|
|
40
|
+
- [Troubleshooting](https://sheet.lodev09.com/troubleshooting)
|
|
40
41
|
|
|
41
42
|
## Usage
|
|
42
43
|
|
|
@@ -80,3 +81,7 @@ See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the
|
|
|
80
81
|
## License
|
|
81
82
|
|
|
82
83
|
[MIT](LICENSE)
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
Made with ❤️ by [@lodev09](http://linkedin.com/in/lodev09/)
|
package/TrueSheet.podspec
CHANGED
|
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
|
|
|
11
11
|
s.license = package["license"]
|
|
12
12
|
s.authors = package["author"]
|
|
13
13
|
|
|
14
|
-
s.platforms = { :ios =>
|
|
14
|
+
s.platforms = { :ios => "13.4" }
|
|
15
15
|
s.source = { :git => "https://github.com/lodev09/react-native-true-sheet.git", :tag => "#{s.version}" }
|
|
16
16
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
@@ -99,14 +99,14 @@ class RootSheetView(private val context: Context?) :
|
|
|
99
99
|
get() = context as ThemedReactContext
|
|
100
100
|
|
|
101
101
|
override fun onInterceptTouchEvent(event: MotionEvent): Boolean {
|
|
102
|
-
jSTouchDispatcher.handleTouchEvent(event,
|
|
102
|
+
eventDispatcher?.let { jSTouchDispatcher.handleTouchEvent(event, it) }
|
|
103
103
|
jSPointerDispatcher?.handleMotionEvent(event, eventDispatcher, true)
|
|
104
104
|
return super.onInterceptTouchEvent(event)
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
@SuppressLint("ClickableViewAccessibility")
|
|
108
108
|
override fun onTouchEvent(event: MotionEvent): Boolean {
|
|
109
|
-
jSTouchDispatcher.handleTouchEvent(event,
|
|
109
|
+
eventDispatcher?.let { jSTouchDispatcher.handleTouchEvent(event, it) }
|
|
110
110
|
jSPointerDispatcher?.handleMotionEvent(event, eventDispatcher, false)
|
|
111
111
|
super.onTouchEvent(event)
|
|
112
112
|
|
|
@@ -127,16 +127,20 @@ class RootSheetView(private val context: Context?) :
|
|
|
127
127
|
|
|
128
128
|
@Deprecated("Deprecated in Java")
|
|
129
129
|
override fun onChildStartedNativeGesture(ev: MotionEvent?) {
|
|
130
|
-
|
|
130
|
+
eventDispatcher?.let {
|
|
131
|
+
if (ev != null) {
|
|
132
|
+
jSTouchDispatcher.onChildStartedNativeGesture(ev, it)
|
|
133
|
+
}
|
|
134
|
+
}
|
|
131
135
|
}
|
|
132
136
|
|
|
133
137
|
override fun onChildStartedNativeGesture(childView: View, ev: MotionEvent) {
|
|
134
|
-
jSTouchDispatcher.onChildStartedNativeGesture(ev,
|
|
138
|
+
eventDispatcher?.let { jSTouchDispatcher.onChildStartedNativeGesture(ev, it) }
|
|
135
139
|
jSPointerDispatcher?.onChildStartedNativeGesture(childView, ev, eventDispatcher)
|
|
136
140
|
}
|
|
137
141
|
|
|
138
142
|
override fun onChildEndedNativeGesture(childView: View, ev: MotionEvent) {
|
|
139
|
-
jSTouchDispatcher.onChildEndedNativeGesture(ev,
|
|
143
|
+
eventDispatcher?.let { jSTouchDispatcher.onChildEndedNativeGesture(ev, it) }
|
|
140
144
|
jSPointerDispatcher?.onChildEndedNativeGesture()
|
|
141
145
|
}
|
|
142
146
|
|
package/package.json
CHANGED