Skip to content

0.65.0

Choose a tag to compare

@MoOx MoOx released this 18 Oct 07:45
· 165 commits to main since this release
5719c56

Notable changes

  • rescript package is now replacing bs-platform.
  • Several removeEventListener calls 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).

Breaking changes

  • Use rescript@^9.1.4 instead of bs-platform@ as a peerDependency a2ae907 by @MoOx
  • Replace EventSubscription.t so you can call .remove() on EventSubscription.t instead of ->EventSubscription.remove()71399ce by @MoOx
  • Remove NativeEventEmitter.removeSubscription in favor of remove() on subscription itself df060f9 by @MoOx
  • Remove Keyboard removeAllListeners and removeListener (you should use remove on listener itself) 2091cb3 by @MoOx
  • Remove AppState.removeEventListener. Instead, use the remove() method on the listener itself 84284e8 by @MoOx
  • Remove NativeEventEmitter.Subscription in favor of just calling .remove() method on listeners. 0e4bb2d by @MoOx
  • Change Dimensions.addEventListener (now returns an EventSubscription.t so you can call remove() on listener directly ) 1131382 by @MoOx

Deprecations

  • Deprecate AccessibilityInfo.removeEventListener in favor of remove method on the listener itself 44f4465 by @MoOx
  • Deprecate EventEmitter#removeSubscription in favor of remove() on subscription itself a771dc8 by @MoOx
  • Deprecate Linking.removeEventListener. Instead, call remove() on the listener itself 4b98e2b by @MoOx

New features

  • Add AccessibilityInfo.getRecommendedTimeoutMillis a90fe94 by @MoOx
  • Add Appearance.addChangeListener 2cda177 by @MoOx
  • Add Button accessibilityState prop 7573c50 by @MoOx
  • Add Color.processColor method 0c880f8 by @MoOx
  • Add DynamicColorIOS highContrastLight & highContrastDark optional values (with new DynamicColorIOS.dynamicColor() since they are optional) cc4132b by @MoOx
  • Add Pressable onBlur and onFocus props 575a634 by @MoOx
  • Add Pressable onHoverIn and onHoverOut react-native-web 0.16 props e625be2 by @jfrolich
  • Add Pressable unstable_pressDelay prop 3d3bf2b & 0117e3e by @jfrolich
  • Add PushNotificationIOS.getAuthorizationStatus method ffc2f0c by @MoOx
  • Add RefreshControl size option 5678d16 by @MoOx
  • Add stickyHeaderHiddenOnScroll props to ScrollView & friends d981203 by @MoOx
  • Add Text onPressIn & onPressOut props 536ea0e by @MoOx
  • Add TouchableHighlight & TouchableOpacity react-native-web 0.16 View prop fbf9571 by @jfrolich