@ornikar/kitt-universal 16.1.3 → 16.2.0
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/dist/definitions/Picker/Picker.d.ts +6 -2
- package/dist/definitions/Picker/Picker.d.ts.map +1 -1
- package/dist/index-browser-all.es.android.js +5 -3
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +5 -3
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +5 -3
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +4 -3
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -8428,7 +8428,9 @@ function Picker(_ref) {
|
|
|
8428
8428
|
itemToString = _ref.itemToString,
|
|
8429
8429
|
checkSelectedItem = _ref.checkSelectedItem,
|
|
8430
8430
|
onChange = _ref.onChange,
|
|
8431
|
-
onClose = _ref.onClose
|
|
8431
|
+
onClose = _ref.onClose,
|
|
8432
|
+
_ref$shouldDisplayNat = _ref.shouldDisplayNativePickerOnIOS,
|
|
8433
|
+
shouldDisplayNativePickerOnIOS = _ref$shouldDisplayNat === void 0 ? true : _ref$shouldDisplayNat;
|
|
8432
8434
|
var _useReducer = useReducer(nativePickerReducer, {
|
|
8433
8435
|
isOpen: isInitialOpen,
|
|
8434
8436
|
currentValue: initialValue,
|
|
@@ -8495,7 +8497,7 @@ function Picker(_ref) {
|
|
|
8495
8497
|
variant: "bold",
|
|
8496
8498
|
children: title
|
|
8497
8499
|
})
|
|
8498
|
-
}), Platform.OS === 'ios' ? /*#__PURE__*/jsx(Picker$1, {
|
|
8500
|
+
}), Platform.OS === 'ios' && shouldDisplayNativePickerOnIOS ? /*#__PURE__*/jsx(Picker$1, {
|
|
8499
8501
|
testID: testID,
|
|
8500
8502
|
selectedValue: state.internalValue,
|
|
8501
8503
|
itemStyle: iosItemStyle,
|
|
@@ -8513,7 +8515,7 @@ function Picker(_ref) {
|
|
|
8513
8515
|
testID: testID,
|
|
8514
8516
|
children: React.Children.map(children, function (child, index) {
|
|
8515
8517
|
var item = child;
|
|
8516
|
-
var isSelected = checkSelectedItem(state.
|
|
8518
|
+
var isSelected = checkSelectedItem(state.internalValue, item.props.value);
|
|
8517
8519
|
return /*#__PURE__*/jsx(Pressable
|
|
8518
8520
|
// eslint-disable-next-line react/no-array-index-key
|
|
8519
8521
|
, {
|