react-native-ui-lib 7.41.0-snapshot.6902 → 7.41.0-snapshot.6905

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ui-lib",
3
- "version": "7.41.0-snapshot.6902",
3
+ "version": "7.41.0-snapshot.6905",
4
4
  "main": "src/index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "author": "Ethan Sharabi <ethan.shar@gmail.com>",
@@ -118,11 +118,14 @@ const Picker = React.forwardRef((props, ref) => {
118
118
  items
119
119
  });
120
120
  const accessibleFilteredItems = useMemo(() => {
121
- return filteredItems.map(item => ({
122
- ...item,
123
- onPress: useWheelPicker && Constants.accessibility.isScreenReaderEnabled ? () => onDoneSelecting(item.value) : undefined
124
- }));
125
- }, [useWheelPicker, filteredItems, onDoneSelecting]);
121
+ if (propItems) {
122
+ return filteredItems.map(item => ({
123
+ ...item,
124
+ onPress: useWheelPicker && Constants.accessibility.isScreenReaderEnabled ? () => onDoneSelecting(item.value) : undefined
125
+ }));
126
+ }
127
+ return filteredItems;
128
+ }, [propItems, useWheelPicker, filteredItems, onDoneSelecting]);
126
129
  const {
127
130
  label,
128
131
  accessibilityInfo