@lodev09/react-native-true-sheet 3.7.0-beta.2 → 3.7.0-beta.3
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.
|
@@ -5,6 +5,7 @@ import android.view.MotionEvent
|
|
|
5
5
|
import android.view.View
|
|
6
6
|
import com.facebook.react.uimanager.JSPointerDispatcher
|
|
7
7
|
import com.facebook.react.uimanager.JSTouchDispatcher
|
|
8
|
+
import com.facebook.react.uimanager.PointerEvents
|
|
8
9
|
import com.facebook.react.uimanager.RootView
|
|
9
10
|
import com.facebook.react.uimanager.ThemedReactContext
|
|
10
11
|
import com.facebook.react.uimanager.events.EventDispatcher
|
|
@@ -66,6 +67,10 @@ class TrueSheetFooterView(private val reactContext: ThemedReactContext) :
|
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
override fun onTouchEvent(event: MotionEvent): Boolean {
|
|
70
|
+
if (pointerEvents == PointerEvents.NONE || pointerEvents == PointerEvents.BOX_NONE) {
|
|
71
|
+
return false
|
|
72
|
+
}
|
|
73
|
+
|
|
69
74
|
eventDispatcher?.let { dispatcher ->
|
|
70
75
|
jsTouchDispatcher.handleTouchEvent(event, dispatcher, reactContext)
|
|
71
76
|
jsPointerDispatcher?.handleMotionEvent(event, dispatcher, false)
|
package/package.json
CHANGED