Reason React Native Versions Save

ReScript bindings for React Native

0.72.0

9 months ago
  • 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

1 year ago

Remove package.json engine section to avoid Yarn installation issue.

0.71.0

1 year ago

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

1 year ago

This release requires ReScript 10.0.0 or later. It contains various breaking changes.

Breaking Changes

  • _end is now end (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 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
  • Deprecated Style.pt unit as been removed (use dp 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 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
  • Lots of [email protected] View props have been added bee39e5 by @MoOx
  • Added Style.empty to avoid Style.arrayOption (so you can write things like Style.array([style1, condition ? style2 : Style.empty])) 762049d by @cknitt

0.69.1

1 year ago

0.69.0

1 year ago

Breaking changes

  • Update PushNotificationIOS.checkPermissions to include iOS 10+ notification settings 14212c0 by @MoOx

New bindings

  • Add dismissActionSheet method to ActionSheetIOS 7e42b63 by @MoOx
  • Add accessibilityLanguage prop to all the available components a210356 by @MoOx
  • Add soundName option for local push notifications in PushNotificationIOS 4f04d77 by @MoOx
  • Create HitSlop & Rect module (don't use them directly yet, wait for 0.70 release...) 394bd60 by @MoOx

0.68.1

2 years ago
  • Fix Animated eventOptions (platformConfig is optional) 8d128b9 by @MoOx

0.68.0

2 years ago

0.67.1

2 years ago

0.67.0

2 years ago

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 for ActionSheetIOS 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 for android_hyphenationFrequency on Text d73c6d7 by @MoOx
  • Remove DatePickerAndroid 31549b1 by @MoOx