GitHub / rescript-react-native / rescript-react-native
ReScript bindings for React Native
JSON API: http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rescript-react-native%2Frescript-react-native
PURL: pkg:github/rescript-react-native/rescript-react-native
Stars: 931
Forks: 149
Open issues: 12
License: mit
Language: ReScript
Size: 5.93 MB
Dependencies parsed at: Pending
Created at: over 8 years ago
Updated at: 12 days ago
Pushed at: 5 days ago
Last synced at: 4 days ago
Commit Stats
Commits: 1243
Authors: 103
Mean commits per author: 12.07
Development Distribution Score: 0.683
More commit stats: https://commits.ecosyste.ms/hosts/GitHub/repositories/rescript-react-native/rescript-react-native
Topics: hacktoberfest, react, react-native, rescript, rescript-react, rescript-react-native
Funding Links https://github.com/sponsors/MoOx
0.73.0
0.73.0
- Upgrade to rescript 11 38cc49d by Freddy03h
- upgrade to rescript 11, @rescript/react 12 and jsx 4
- use record props for component to avoid repetition
@objfunctions as deprecatededgeInsetsas deprecated- convert ActivityIndicator Size type to variant
- binding to Animated components instead of recreating them
- Fix Keyboard bindings 9380611 by ashishsingh101
- Remove deprecated stuff from PlatformColors 8daff8b by @cknitt
- Remove modules that were removed from React Native 1153b72 by @cknitt
- add transformOrigin 1d00148 by Freddy03h
- add maintainVisibleContentPosition in scrollview ba62517 by Yummy-sk
Download
0.72.0
0.72.0
- Remove deprecated Slider, DatePickerIOS & ProgressViewIOS 82dc6e1 by @MoOx
- Add VirtualizedList
onStartReached/onStartReachedThresholdprops d69aa1e by @MoOx - Add Appearance
setColorSchememethod 878f426 by @MoOx - Add Style
borderBlockColorborderBlockEndColor`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
Download
0.71.0
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
Download
0.70.0
0.70.0
This release requires ReScript 10.0.0 or later.
It contains various breaking changes.
Breaking Changes
_endis 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,#boxNoneetc 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,
fontWeightis now an abstract type. This means thatstyle(~fontWeight=#_600, ())now becomesstyle(~fontWeight=FontWeight._600, ())44885db by @cknitt @stringusage have been removed when possible. This means types that were inlined in bindings are now common. 6495093 by @cknittPlatform.osnow use polymorphic variant.if Platform.os === Platform.androidbecomesif Platform.os === #android. Be careful: if used in a switch, you will lose metro bundler optimisation ! b189fbc & 9964b13 by @cknittPlatformColorhave been rewritten. Lots of deprecation & polymorphic variants changes (eg: for android, instead of#background_darkuse#"@android:color/background_dark") 036566e by @MoOxAppearancenow returnsoption<t>instead ofJs.Null.t<t>thanks to@nullable91f0a67 by @cknitt- Deprecated
Style.ptunit as been removed (usedpinstead (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@objexternal 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.17View props have been added bee39e5 by @MoOx - Added
Style.emptyto avoidStyle.arrayOption(so you can write things likeStyle.array([style1, condition ? style2 : Style.empty])) 762049d by @cknitt
Download
0.69.0
0.69.0
Breaking changes
- Update
PushNotificationIOS.checkPermissionsto include iOS 10+ notification settings 14212c0 by @MoOx
New bindings
- Add
dismissActionSheetmethod toActionSheetIOS7e42b63 by @MoOx - Add
accessibilityLanguageprop to all the available components a210356 by @MoOx - Add
soundNameoption for local push notifications inPushNotificationIOS4f04d77 by @MoOx - Create
HitSlop&Rectmodule (don’t use them directly yet, wait for 0.70 release…) 394bd60 by @MoOx
Download