Add Pressable `onBlur` and `onFocus` props · rescript-react-native/rescript-react-native@575a634

Original file line numberDiff line numberDiff line change

@@ -108,6 +108,17 @@ module ResponderSyntheticEvent = (

108108

@get external touchHistory: t => touchHistory = "touchHistory"

109109

}

110110
111+

module BlurEvent = {

112+

include SyntheticEvent({

113+

type _payload = {target: float}

114+

})

115+

}

116+

module FocusEvent = {

117+

include SyntheticEvent({

118+

type _payload = {target: float}

119+

})

120+

}

121+
111122

module LayoutEvent = {

112123

type layout = {

113124

x: float,

@@ -206,9 +217,11 @@ module TargetEvent = {

206217

})

207218

}

208219
220+

type blurEvent = BlurEvent.t

221+

type focusEvent = FocusEvent.t

209222

type layoutEvent = LayoutEvent.t

210-

type textLayoutEvent = TextLayoutEvent.t

211223

type pressEvent = PressEvent.t

212224

type scrollEvent = ScrollEvent.t

213225

type switchChangeEvent = SwitchChangeEvent.t

214226

type targetEvent = TargetEvent.t

227+

type textLayoutEvent = TextLayoutEvent.t