@eslam-elmeniawy/react-native-common-components
Version:
Common `ReactNative` components packed in library for usage in projects.
34 lines (31 loc) • 847 B
JavaScript
;
// External imports.
import * as React from 'react';
// Types imports.
// Internal imports.
import styles from "./TextInput.styles.js";
import { Checkbox } from "../CompoundButton/index.js";
import { jsx as _jsx } from "react/jsx-runtime";
const SelectInputMenuItem = /*#__PURE__*/React.memo(props => {
const {
theme,
item,
onItemPressed,
isItemSelected
} = props;
return /*#__PURE__*/_jsx(Checkbox, {
style: styles.selectItem,
onPress: () => onItemPressed(item),
checked: isItemSelected(item),
checkedColor: theme.colors.primary,
uncheckedColor: theme.colors.onSurface,
text: item.dropdownTitle,
textProps: {
style: {
color: theme.colors.onSurface
}
}
}, item.key);
});
export default SelectInputMenuItem;
//# sourceMappingURL=SelectInputMenuItem.js.map