Releases: rescript-react-native/rescript-react-native
Releases · rescript-react-native/rescript-react-native
0.72.0
- Remove deprecated Slider, DatePickerIOS & ProgressViewIOS 82dc6e1 by @MoOx
- Add VirtualizedList
onStartReached
/onStartReachedThreshold
props d69aa1e by @MoOx - Add Appearance
setColorScheme
method 878f426 by @MoOx - Add Style
borderBlockColor
borderBlockEndColor
`borderBlockStartCo… a12bade by @MoOx - Add Style
borderEndEndRadius``borderEndStartRadius
`borderStartEndRadi… 66b5cbd by @MoOx - Add Style margin & padding CSS logical props c91f345 by @MoOx
- Add various Android accessibility roles values 7057d79 by @MoOx
0.71.1
0.71.0
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
Contributors
0.70.0
This release requires ReScript 10.0.0 or later.
It contains various breaking changes.
Breaking Changes
_end
is nowend
(not a reserved word anymore) 92e3c6f by @cknitt- Camel cased polymorphic variants &
_
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 - Because a limitation with ReScript that doesn't handle correctly numeric string as polymorphic variant,
fontWeight
is now an abstract type. This means thatstyle(~fontWeight=#_600, ())
now becomesstyle(~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 @cknittPlatform.os
now use polymorphic variant.if Platform.os === Platform.android
becomesif Platform.os === #android
. Be careful: if used in a switch, you will lose metro bundler optimisation ! b189fbc & 9964b13 by @cknittPlatformColor
have been rewritten. Lots of deprecation & polymorphic variants changes (eg: for android, instead of#background_dark
use#"@android:color/background_dark"
) 036566e by @MoOxAppearance
now returnsoption<t>
instead ofJs.Null.t<t>
thanks to@nullable
91f0a67 by @cknitt- Deprecated
Style.pt
unit as been removed (usedp
instead (density pixel)) 3df0fcf by @cknitt
Others changes
- Most object types created using externals can now be created using objects with optional fields. This means that things like
ActionSheetIOS.showActionSheetWithOptions(ActionSheetIOS.shareOptions(~url,(), /*...*/)
can be writtenActionSheetIOS.showActionSheetWithOptions({url}, /*...*/)
. Previous@obj
external helpers will be deprecated in the future, and then removed. Note thatStyle.style()
now have a replacementStyle.s()
that accepts an object with optional keys ! e606a03 by @cknitt - Lots of
react-native-web@0.17
View props have been added bee39e5 by @MoOx - Added
Style.empty
to avoidStyle.arrayOption
(so you can write things likeStyle.array([style1, condition ? style2 : Style.empty])
) 762049d by @cknitt
0.69.1
0.69.0
Breaking changes
- Update
PushNotificationIOS.checkPermissions
to include iOS 10+ notification settings 14212c0 by @MoOx
New bindings
- Add
dismissActionSheet
method toActionSheetIOS
7e42b63 by @MoOx - Add
accessibilityLanguage
prop to all the available components a210356 by @MoOx - Add
soundName
option for local push notifications inPushNotificationIOS
4f04d77 by @MoOx - Create
HitSlop
&Rect
module (don't use them directly yet, wait for 0.70 release...) 394bd60 by @MoOx
0.68.1
0.68.0
0.67.1
0.67.0
This changes are just to follow React Native 0.67 changes.
- Add
ACCESS_MEDIA_LOCATION
permission to PermisionsAndroid library 5338327 by @MoOx - Added
cancelButtonTintColor
prop forActionSheetIOS
to change only the text color of the cancel button 42dd7ee by @MoOx - Add missing
Keyboard.removeListener
05a5656 by @MoOx - Remove
#high
and#balanced
as values forandroid_hyphenationFrequency
onText
d73c6d7 by @MoOx - Remove
DatePickerAndroid
31549b1 by @MoOx