- Add
Animated.Colornode a761012 by @MoOx - Add option to supply
platformConfigto NativeAnimated ff931ea by @MoOx - Add
TextInputsetSelectionmethod 32c12da by @MoOx - Add
accessibilityLabelledByAndroid View prop 35306c3 by @MoOx - Add
AccessibilityInfo.isAccessibilityServiceEnabled4fb9319 by @MoOx
This changes are just to follow React Native 0.67 changes.
- Add
ACCESS_MEDIA_LOCATIONpermission to PermisionsAndroid library 5338327 by @MoOx - Added
cancelButtonTintColorprop forActionSheetIOSto change only the text color of the cancel button 42dd7ee by @MoOx - Add missing
Keyboard.removeListener05a5656 by @MoOx - Remove
#highand#balancedas values forandroid_hyphenationFrequencyonTextd73c6d7 by @MoOx - Remove
DatePickerAndroid31549b1 by @MoOx
- Remove Picker & PickerIOS (Use https://github.com/react-native-picker/picker & https://github.com/rescript-react-native/picker instead) 9e45fcd by @MoOx
- Update
TextInputautoCompleteTypeprop toautoCompleteee307e6 by @MoOx - Change
TextInputautoCompleteprop values (add more & change some to quoted polymorphic variants)) 21e802d by @MoOx
- Add
#togglebuttontoaccessibilityRoleprop 0b4688b by @MoOx - Add
accessibilityRole#tabbarvalue 7c8f283 by @MoOx - Add
Buttonaccessible,accessibilityActions&onAccessibilityActionprops 484e344 by @MoOx - Add
PermissionsAndroidbluetoothAdvertisepermission e1ca5e5 by @MoOx - Add
PlatformColoriOS missing standard colors 92e7d77 by @MoOx - Add
Pressableforegroundoption for ripple config for Android 9bd7499 by @MoOx - Add
TextaccessibilityActions&onAccessibilityActionsprops 9b52e53 by @MoOx
rescriptpackage is now replacingbs-platform.- Several
removeEventListenercalls were removed or deprecated in React Native 0.65. You might have to update your code to reflect this. Check the full list below (or just follow compilation warnings/errors).
- Use
rescript@^9.1.4instead ofbs-platform@as a peerDependency a2ae907 by @MoOx - Replace
EventSubscription.tso you can call.remove()onEventSubscription.tinstead of->EventSubscription.remove()71399ce by @MoOx - Remove
NativeEventEmitter.removeSubscriptionin favor ofremove()on subscription itself df060f9 by @MoOx - Remove
KeyboardremoveAllListenersandremoveListener(you should useremoveon listener itself) 2091cb3 by @MoOx - Remove
AppState.removeEventListener. Instead, use theremove()method on the listener itself 84284e8 by @MoOx - Remove
NativeEventEmitter.Subscriptionin favor of just calling.remove()method on listeners. 0e4bb2d by @MoOx - Change
Dimensions.addEventListener(now returns anEventSubscription.tso you can callremove()on listener directly ) 1131382 by @MoOx
- Deprecate
AccessibilityInfo.removeEventListenerin favor ofremovemethod on the listener itself 44f4465 by @MoOx - Deprecate
EventEmitter#removeSubscriptionin favor ofremove()on subscription itself a771dc8 by @MoOx - Deprecate
Linking.removeEventListener. Instead, callremove()on the listener itself 4b98e2b by @MoOx
- Add
AccessibilityInfo.getRecommendedTimeoutMillisa90fe94 by @MoOx - Add
Appearance.addChangeListener2cda177 by @MoOx - Add
ButtonaccessibilityStateprop 7573c50 by @MoOx - Add
Color.processColormethod 0c880f8 by @MoOx - Add
DynamicColorIOShighContrastLight&highContrastDarkoptional values (with newDynamicColorIOS.dynamicColor()since they are optional) cc4132b by @MoOx - Add
PressableonBlurandonFocusprops 575a634 by @MoOx - Add
PressableonHoverInandonHoverOutreact-native-web 0.16 props e625be2 by @jfrolich - Add
Pressableunstable_pressDelayprop 3d3bf2b & 0117e3e by @jfrolich - Add
PushNotificationIOS.getAuthorizationStatusmethod ffc2f0c by @MoOx - Add
RefreshControlsizeoption 5678d16 by @MoOx - Add
stickyHeaderHiddenOnScrollprops toScrollView& friends d981203 by @MoOx - Add
TextonPressIn&onPressOutprops 536ea0e by @MoOx - Add
TouchableHighlight&TouchableOpacityreact-native-web 0.16 View prop fbf9571 by @jfrolich
🚨 Minor Breaking changes for React Native Web users only
- Remove
rel&targetView props - Add React Native Web
hrefAttrsprop for 0.16
Ooopsy. Actually this release contains .res/.resi files.
reason-react-native->rescript-react-nativepeerDependencieschanged to"@rescript/react": "^0.10.0""bs-platform": "^9.0.0"
- Removed
CheckBox76ef45c by @MoOx ImageLoadEvent.source.urlis nowImageLoadEvent.source.urice21b74 by @MoOx- Remove
UIManager.playTouchSound(useSoundManager.playTouchSoundinstead) cd03cfb by @MoOx Pressable_is nowPressable(to benefit of the full benefit of Pressable, following deprecation notice in 0.63.3) 421962f by @MoOx- Changed
ActionSheetIOSdestructiveButtonIndexto accept array instead of just int (as RN acceptsint | array<int>) 81f4f18 by @MoOx - Changed
ImageuriSourceheadersto beJs.Dict.t(string)ca786f9 by @MoOx
- Added
PlatformColoriOSclearcolor b813ee9 by @MoOx + b9e33c7 - Added
Textandroid_hyphenationFrequencyprop 1864063 by @MoOx - Added
TextdataDetectorTypesprop 635066c by @MoOx - Added
Textdisabledprop 635066c by @MoOx - Added
TextmaxFontSize…Multiplierprop 635066c by @MoOx - Added
TextnativeIDprop 635066c by @MoOx - Added
TextonTextLayoutprop 635066c by @MoOx - Added
Textgesture responder props 635066c by @MoOx - Added
TextInputonPressIn&onPressOut13b8e7f by @MoOx - Added
NativeEventEmitter.listenerCounte88e336 by @MoOx - Added
ActionSheetIOSdisabledButtonIndices74af1ab by @MoOx
Fix & change Android PlatformColor binding to use built-in selector #737 by @diaozheng999
- Fixed
PlatformColor.Android.getAttr: now use"?android:attr/*instead of"?attr/* - Added
PlatformColor.Android.get{x}(x being an integer from 2 to 7) so you can use@android:color&@?android:attrin the same call, asPlatformColoraccepts multiple arguments as fallbacks. - Added
PlatformColor.unsafeGet{x}(x being an integer from 2 to 7) that allow you to pass unsafe values (string, which can be useful for user defined values).
Also:
- Added
PlatformColor.Android.get - Added
PlatformColor.Ios.get{x}like Android PlatformColor.IOSis deprecated in favor ofPlatformColor.IosPlatformColor.Android.unsafeGetis deprecated in favor ofPlatformColor.unsafeGet
Fixed measure & measureInWindow functions types #736 by @Freddy03h
Added Pressable with child function and interaction states (as Pressable_) #735 by @Freddy03h
Breaking change, sorry: Reverting ActivityIndicator size as polymorphic variant so we can keep the exact option.
Fix npm description
⚠️ Changed minimal versions required #722 by @cknitt- ReScript / bs-platform 8.2
- rescript-react 0.9.1
- Switched solution to avoid warnings being throw as errors b5038e9 by @MoOx with the help of @Freddy03h and @bobzhang in #718 This will help to avoid issue if ReScript introduce new warning that caused in the past impossibility to use our bindings (eg: ReScript 8.2 bs.string annontations).
- Switch to polymorphic variants instead of abstract types where possible #724 #727 by @cknitt
- Removed superfluous bs.string attributes #723 by @cknitt This change shouldn't impact your code if you are using ReScript 8.2 as required.
- Accessibility changes for react-native 0.63 #728 by @cknitt
- Removed
accessibilityComponentType - Removed
accessibilityTraits. - Added
AccessibilityActionEvent - Added
onAccessibilityAction. - Added
Accessibility.actionInfo(already there, but broken - missing unit to terminate argument list). - Note that
Accessibility.rolewas actually already up to date (except for the value "switch" which we can't add because it's a keyword). Feel free to open an issue if you needswitchvalue.
- Removed
- Removed
Global.unstable_enableLogBox#718 by @gedeagas This is now enabled by default in React Native 0.63. See addedLogBoxbindings for more options. - Removed
tintColorprop from Switch component #714 by @gedeagas
- Added
DynamicColorIOS#717 by @celsobonutti Note that there is only 2 keys (lightanddark) but React Native documentation mention they might be more in the future, without saying if they will be mandatory or not. If you want to protect yourself, you might want to make your own factory. In any case, we can still deprecate themakebinding & create a new external binding with optional keys. So don't worry too much. - Added
PlatformColorbinding #730 by @rifaldhiaw - Added
PermissionsAndroid.accessBackgroundLocation#729 by @cknitt + b8392e3 by @MoOx - Added
LogBox#711 by @idkjs - Added
accessibilityActionsprop #713 by @gedeagas - Added
Pressable#712 by @gedeagas - Added
AppStatevaluesunknownandextension(iOS) #726 by @cknitt
- ReScript branding has been adopted in various places in all the repos of our organisation.
- More futur proof "files" patterns for npm (in case of interop files) 1a3b677 by @MoOx
- Simplify package.json files section a9cacbd by @MoOx
- Stop blocking compilation because of ReScript warnings (emitted as errors) #708 by @jfrolich
This is to ensure ReScript 8.2 compatibility & avoid similar problem in the future.
- Fixed View props for all components that use them (stay in sync) e5adee0 by @MoOx
- Removed TabBarIOS (removed since RN 0.59) 13991e0 by @MoOx
- Internal: removed duplicated code source in md files (website will produce the same result - no manual syncing required) 1524b87 by @MoOx
The release we all have been waiting for (thanks for you patience)!
Huge thanks to @sgny which handled most of the
changes directly related to react-native 0.62.
tl;dr: this release includes
- breaking changes related to
rescript-react@0.8 - breaking changes related to
bs-platform@7(say bye to most##accessors in favor of.) - breaking changes related to
react-native@0.62(say bye to removed components)
So in order to upgrade to this release you need to upgrade all this dependencies
at the same time. Be sure to respect
peerDependencies
before reporting issue.
- Upgraded rescript-react to 0.8.0 (#689) by @jfrolich
See https://rescript-lang.org/blog/rescript-react-0-8-0 for more informations - Upgraded to bs-platform 7.3.0 (#631) by @idkjs (#666) by @Arnarkari93 (#674) (#693) (#690) (#694) by @sgny (#695) by @cknitt
We have convertedJs.tobjects to records where possible (we had to skipped objects that rely on[@bs.meth]). This means ou will have to change a lot of##notation to just a dot (.) to access properties.
See https://rescript-lang.org/blog/whats-new-in-7-pt1 for more informations - Removed some methods for FlatList, ScrollView, SectionList, VirtualizedList and VirtualizedSectionList (#680) by @sgny
These components are interrelated in the sense of being based on each other and inheriting props, however, applicable methods are not inherited quite so consistently. We removed unavailable methods from each component. - Removed
accessibilityStatesprop (#656) by @sgny - Removed
TextInputonTextInputandselectionStateprops (#658) by @sgny - Animated: setting
useNativeDriverprop is required (#655) by @sgny - Handle deprecated or removed components and APIs (#668) by @sgny
- Removed components:
ToolbarAndroid,ViewPagerAndroid,WebView - Removed APIs:
AlertIOS,CameraRoll,GeoLocation,ImageEditor,NetInfo,TimePickerAndroid - Some others components that have been deprecated in RN regarding "Lean Core" initiative have been documented as such and will be removed in future releases.
- Removed components:
- Deprecated
Style.list&Style.listOptionfor future bs-platform 8.0.0 compatibility (#700) by @MoOx
- Fixed
DatePickerIOSminuteIntervaltype (int, not string) (#648) by @idkjs - Fixed
Animated.ValueXY.getTranslateTransform(value)binding (#675) by @benadamstyles - Fixed
Global.hermesInternal(#703) by @fa7ad - Fixed
TouchableNativeFeedback.Background.canUseNativeForegroundtype (#704) by @phamhoaivu911
- Added support for callback refs (#684) by @cknitt
- Added
unstable_enableLogBox(#692) by @MoOx - Added
Appearancemodule (#654) (#662) (#677) by @sgny - Added Modal
statusBarTranslucentprop (#660) by @sgny - Added missing accessibility props to
Touchable*components (#659) by @sgny - Added
accessibilityStateprop and constructor for related object (#657) by @sgny - Added
DevSettingsmodule (#661) (#664) by @sgny - Added
fadingEdgeLengthprop to FlatList, ScrollView, SectionList etc (#663) by @sgny - Added
accessibilityValueprop (#665) - Added mouse event for
react-native-web(#646) by @Naturalclar - Added
onMouseEnter,onMouseLeaveprops for View, Text, TextInput and more web props, press-event, href and target (#650) by @jfrolich - Updated Linking documentation (#673) by @sgny
- Updated Event documentation (#672) by @sgny
- Add
NativeEventEmitter#642 by @cknitt - New abstract type for Android Date/TimePicker
action#640 by @cknitt - Add
accessibilityRoleweb values andarialLevelweb props (#639 by @Naturalclar
- Fix
autoCompleteTypeprop forTextInputcomponent (previously incorrectly namedautoComplete) (#639 by @Naturalclar - Resolves all ReScript / BuckleScript inferred name warnings (#628 by @idkjs
- Change type for
DrawerLayoutAndroiddrawerPositionprop #626 by @sgny.
You need to replaceDrawerLayoutAndroid.left&DrawerLayoutAndroid.rightby [](https://github.com/`) ` left&`right.
- Add
SoundManager+ deprecateUIManager.playTouchSound#616 by @sgny - Add
useWindowDimensionshook #615 by @sgny - Add
touchSoundDisabledprop toButtonand all Touchable components #627 by @stuartkeith
Probably the latest release for React Native 0.60. We will focus on 0.61.
Sorry, a mix of bugfixes & changes! This should be easy to handle for you.
- Add constructor for section type in
VirtualizedSectionList#614 by @sgny - Add
SectionList/VirtualizedSectionListsection data as parameterized type #618 by @jfrolich
- Fix
AppState(now returnunit) #568 by @cknitt - Fix
Animated.eventtype so it can be used inAnimated.ScrollViewonScrollprops (& similar) #584 by @MoOx - Fix missing
[@bs.meth]in methods ofEvent,BackHandler&NetInfo#621 by @cknitt - Fix
ScrollViewscrollToItem,scrollToIndexandscrollToOffset#569 by @benadamstyles - Fix
WebviewcontentInsetprop #607 by @cem2ran - Fix
WebViewevent types & add missing fields #608 by @cem2ran
- Add
AccessibilityInfo#587 by @sgny - Add
Alert.prompt#617 by by @fhammerschmidt - Add
Animated.SectionListandAnimated.FlatList#600 by @sgny + #623 by @jfrolich - Add lots of
AppRegistrymethods #567 by @sgny + #560 by @cknitt - Add
Global.__DEV__#609 by @sgny - Add
Global.hermesInternal#613 by @MoOx - Add
YellowBox#562 by @cknitt
We improved some part of the missing docs, thanks to contributions of @sgny,
@idkjs, @fhammerschmidt & @MoOx and maybe others we forgot to mention (but
git log doesn't)
✨ Initial release for this new React Native bindings!
See https://rescript-react-native.github.io/en/blog/2019-06-17-hello-reason-react-native/ for more information.