react-native-bottom-sheet-dropdown 1.0.1 → 1.0.2
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/lib/BottomSheetDropdown.js +2 -2
- package/lib/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -31,7 +31,7 @@ const react_native_1 = require("react-native");
|
|
|
31
31
|
const index_1 = require("./utils/index");
|
|
32
32
|
const DownIcon_1 = __importDefault(require("./icons/DownIcon"));
|
|
33
33
|
const DropdownModal_1 = __importDefault(require("./DropdownModal"));
|
|
34
|
-
const BottomSheetDropdown = ({ data, onSelect, rtl, title = "", placeholder = "Select an option", selectedValue, selectedValueStyle, placeholderStyle, mainDropdownInput, titleStyle, dropdownModalProps, selectedOption, }) => {
|
|
34
|
+
const BottomSheetDropdown = ({ data, onSelect, rtl, title = "", placeholder = "Select an option", selectedValue, selectedValueStyle, placeholderStyle, mainDropdownInput, titleStyle, dropdownModalProps, selectedOption, iconColor, }) => {
|
|
35
35
|
const [showModal, setShowModal] = React.useState(false);
|
|
36
36
|
const toggleDropdownModal = React.useCallback(() => {
|
|
37
37
|
setShowModal(!showModal);
|
|
@@ -49,6 +49,6 @@ const BottomSheetDropdown = ({ data, onSelect, rtl, title = "", placeholder = "S
|
|
|
49
49
|
React.createElement(react_native_1.Text, { style: styles.title }, title),
|
|
50
50
|
React.createElement(react_native_1.Pressable, { style: styles.dropdownContainer, onPress: toggleDropdownModal },
|
|
51
51
|
selectedOption ? (React.createElement(react_native_1.Text, { style: styles.selectedValue }, selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.label)) : (React.createElement(react_native_1.Text, { style: styles.placeholderValue }, placeholder)),
|
|
52
|
-
React.createElement(DownIcon_1.default,
|
|
52
|
+
React.createElement(DownIcon_1.default, { color: iconColor })))));
|
|
53
53
|
};
|
|
54
54
|
exports.default = BottomSheetDropdown;
|
package/lib/types.d.ts
CHANGED