ReScript bindings for React Native
onStartReached
/ onStartReachedThreshold
props d69aa1e by @MoOx
setColorScheme
method 878f426 by @MoOx
borderBlockColor
borderBlockEndColor
`borderBlockStartCo… a12bade by @MoOx
borderEndEndRadius``borderEndStartRadius
`borderStartEndRadi… 66b5cbd by @MoOx
Remove package.json
engine
section to avoid Yarn installation issue.
This release requires @rescript/react 0.11.0 or later. It contains various breaking changes to match React Native 0.71.
You can see changelog by comparing 0.71 to 0.70
This release requires ReScript 10.0.0 or later. It contains various breaking changes.
_end
is now end
(not a reserved word anymore) 92e3c6f by @cknitt
_
prefixed props when possible have been changed to reflect React Native original naming convention. Things like #plainText
, #boxNone
etc have been changed to what they should be (#"plain-text"
, #"box-none"
etc) 6495093 & 6495093 by @cknitt & 4360933 by @MoOx
fontWeight
is now an abstract type. This means that style(~fontWeight=#_600, ())
now becomes style(~fontWeight=FontWeight._600, ())
44885db by @cknitt
@string
usage have been removed when possible. This means types that were inlined in bindings are now common. 6495093 by @cknitt
Platform.os
now use polymorphic variant. if Platform.os === Platform.android
becomes if Platform.os === #android
. Be careful: if used in a switch, you will lose metro bundler optimisation ! b189fbc & 9964b13 by @cknitt
PlatformColor
have been rewritten. Lots of deprecation & polymorphic variants changes (eg: for android, instead of #background_dark
use #"@android:color/background_dark"
) 036566e by @MoOx
Appearance
now returns option<t>
instead of Js.Null.t<t>
thanks to @nullable
91f0a67 by @cknitt
Style.pt
unit as been removed (use dp
instead (density pixel)) 3df0fcf by @cknitt
ActionSheetIOS.showActionSheetWithOptions(ActionSheetIOS.shareOptions(~url,(), /*...*/)
can be written ActionSheetIOS.showActionSheetWithOptions({url}, /*...*/)
. Previous @obj
external helpers will be deprecated in the future, and then removed. Note that Style.style()
now have a replacement Style.s()
that accepts an object with optional keys ! e606a03 by @cknitt
[email protected]
View props have been added bee39e5 by @MoOx
Style.empty
to avoid Style.arrayOption
(so you can write things like Style.array([style1, condition ? style2 : Style.empty])
) 762049d by @cknitt
PushNotificationIOS.checkPermissions
to include iOS 10+ notification settings 14212c0 by @MoOx
dismissActionSheet
method to ActionSheetIOS
7e42b63 by @MoOx
accessibilityLanguage
prop to all the available components a210356 by @MoOx
soundName
option for local push notifications in PushNotificationIOS
4f04d77 by @MoOx
HitSlop
& Rect
module (don't use them directly yet, wait for 0.70 release...) 394bd60 by @MoOx
This changes are just to follow React Native 0.67 changes.
ACCESS_MEDIA_LOCATION
permission to PermisionsAndroid library 5338327 by @MoOx
cancelButtonTintColor
prop for ActionSheetIOS
to change only the text color of the cancel button 42dd7ee by @MoOx
Keyboard.removeListener
05a5656 by @MoOx
#high
and #balanced
as values for android_hyphenationFrequency
on Text
d73c6d7 by @MoOx
DatePickerAndroid
31549b1 by @MoOx