@@ -49,17 +49,17 @@ class ModalContentLayout(context: Context?) : ReactViewGroup(context), RootView{
49
49
updateFirstChildView()
50
50
}
51
51
}
52
- override fun onChildStartedNativeGesture (child : View , androidEvent : MotionEvent ? ) {
52
+ override fun onChildStartedNativeGesture (child : View , androidEvent : MotionEvent ) {
53
53
mJSTouchDispatcher.onChildStartedNativeGesture(androidEvent, this .getEventDispatcher())
54
54
}
55
- override fun onChildStartedNativeGesture (androidEvent : MotionEvent ? ) {
55
+ override fun onChildStartedNativeGesture (androidEvent : MotionEvent ) {
56
56
mJSTouchDispatcher.onChildStartedNativeGesture(androidEvent, this .getEventDispatcher())
57
57
}
58
- override fun onChildEndedNativeGesture (child : View , androidEvent : MotionEvent ? ) {
58
+ override fun onChildEndedNativeGesture (child : View , androidEvent : MotionEvent ) {
59
59
mJSTouchDispatcher.onChildEndedNativeGesture(androidEvent, this .getEventDispatcher())
60
60
}
61
61
override fun requestDisallowInterceptTouchEvent (disallowIntercept : Boolean ) {}
62
- private fun getEventDispatcher (): EventDispatcher ? {
62
+ private fun getEventDispatcher (): EventDispatcher {
63
63
val reactContext: ReactContext = this .getReactContext()
64
64
return reactContext.getNativeModule(UIManagerModule ::class .java)!! .eventDispatcher
65
65
}
@@ -73,15 +73,15 @@ class ModalContentLayout(context: Context?) : ReactViewGroup(context), RootView{
73
73
return this .context as ReactContext
74
74
}
75
75
76
- override fun onInterceptTouchEvent (event : MotionEvent ? ): Boolean {
76
+ override fun onInterceptTouchEvent (event : MotionEvent ): Boolean {
77
77
mJSTouchDispatcher.handleTouchEvent(event, getEventDispatcher())
78
78
return super .onInterceptTouchEvent(event)
79
79
}
80
80
81
- override fun onTouchEvent (event : MotionEvent ? ): Boolean {
81
+ override fun onTouchEvent (event : MotionEvent ): Boolean {
82
82
mJSTouchDispatcher.handleTouchEvent(event, getEventDispatcher())
83
83
super .onTouchEvent(event)
84
84
return true
85
85
}
86
86
87
- }
87
+ }
0 commit comments