react-native-picture-selector 1.0.22 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +7 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -16,7 +16,7 @@ High-performance photo and video picker for React Native, built on **Nitro Modul
16
16
  - **Cropping** — fixed ratio, free-style, circular (iOS)
17
17
  - **Compression** — JPEG quality + max dimensions
18
18
  - **Video duration limits** — min / max in seconds
19
- - **Pre-selected assets** — restore a previous selection
19
+ - **Pre-selected assets** — restore a previous selection (Android only)
20
20
  - **Themes** — WeChat / White / Dark (Android), hex accent color (iOS)
21
21
  - **Strict TypeScript** — fully typed API and result objects
22
22
  - **Promise-based** — async/await friendly, cancel → rejection
@@ -360,6 +360,8 @@ openPicker({ themeColor: '#E91E63' }) // Pink
360
360
 
361
361
  ### Pre-selected assets
362
362
 
363
+ > **iOS limitation**: `selectedAssets` is not yet implemented on iOS. The option is accepted but has no effect. See Android usage below.
364
+
363
365
  Pass `file://` URIs of previously selected files to pre-check them in the gallery grid.
364
366
 
365
367
  ```ts
@@ -638,6 +640,8 @@ export default ChatInput
638
640
 
639
641
  ### Profile settings — restore previous selection
640
642
 
643
+ > **Note**: `selectedAssets` pre-selection works on Android only. On iOS the picker opens without any pre-checked items.
644
+
641
645
  ```tsx
642
646
  function ProfilePhotoScreen() {
643
647
  const [photo, setPhoto] = useState<MediaAsset | null>(null)
@@ -693,6 +697,7 @@ function ProfilePhotoScreen() {
693
697
  - `bucketName` is only populated on Android.
694
698
  - `themeColor` sets HXPhotoPicker's global `themeColor` property (navigation bar, selection indicators).
695
699
  - `theme` enum values (`WECHAT`, `WHITE`, `DARK`) are ignored on iOS — use `themeColor` instead.
700
+ - `selectedAssets` pre-selection is **not yet implemented** on iOS — the option is accepted but has no effect. Resolving `file://` URIs back to `PHAsset` objects is required for this feature.
696
701
 
697
702
  ---
698
703
 
@@ -723,6 +728,7 @@ function ProfilePhotoScreen() {
723
728
 
724
729
  | Feature | Status |
725
730
  |---------|--------|
731
+ | `selectedAssets` pre-selection (iOS) | Not yet implemented — Android only |
726
732
  | Audio file selection | Not supported |
727
733
  | iCloud Photos (iOS) | Partial — depends on HXPhotoPicker internals |
728
734
  | Live Photos | Not exposed |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-picture-selector",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "High-performance photo/video picker for React Native using Nitro Modules",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",