You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
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 KeyboardremoveAllListeners 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.getRecommendedTimeoutMillisa90fe94 by @MoOx
Add DynamicColorIOShighContrastLight & highContrastDark optional values (with new DynamicColorIOS.dynamicColor() since they are optional) cc4132b by @MoOx
Add PressableonBlur and onFocus props 575a634 by @MoOx
Add PressableonHoverIn and onHoverOut react-native-web 0.16 props e625be2 by @jfrolich