yarn react-native-permissions 4.0.0

latest releases: 5.1.0, 5.0.2, 5.0.1...
11 months ago

Version 4.0.0, with iOS 17 and Android 14 support 🎉

⚠️ This version requires Xcode 15 and drops support for iOS < 12.4 and React Native < 0.70.

What's changed

  • Deprecated iOS permission setup methods have been removed. setup_permissions is now the unique way to do it
  • openLimitedPhotoLibraryPicker has been renamed openPhotoPicker
  • PERMISSIONS.IOS.BLUETOOTH_PERIPHERAL has been renamed PERMISSIONS.IOS.BLUETOOTH

What's new

  • New Android permission: PERMISSIONS.ANDROID.READ_MEDIA_VISUAL_USER_SELECTED (closes #827)
  • New iOS permission: PERMISSIONS.IOS.CALENDARS_WRITE_ONLY (closes #804)
  • openPhotoPicker now resolves on picker close, not immediately (closes #689)
  • PERMISSIONS.IOS.APP_TRACKING_TRANSPARENCY now resolves the requestTrackingAuthorizationWithCompletionHandler callback value (closes #823)

How to migrate

  • Migrate to the setup_permissions method
  • Replace PERMISSIONS.IOS.BLUETOOTH_PERIPHERAL with PERMISSIONS.IOS.BLUETOOTH
  • Replace BluetoothPeripheral with Bluetooth in setup_permissions
  • Replace NSCalendarsUsageDescription with NSCalendarsFullAccessUsageDescription
  • Replace NSRemindersUsageDescription with NSRemindersFullAccessUsageDescription
  • Replace openLimitedPhotoLibraryPicker with openPhotoPicker

What's next?

This release is quite minimal. If your company wants a new feature, feels free to reach me via email to hire me for it 🙂

Don't miss a new react-native-permissions release

NewReleases is sending notifications on new releases.