create-expo-cljs-app
Version:
Create a react native application with Expo and Shadow-CLJS!
31 lines (26 loc) • 627 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isChecked = exports.handlePress = void 0;
const handlePress = ({
onPress,
value,
onValueChange
}) => {
onValueChange ? onValueChange(value) : onPress === null || onPress === void 0 ? void 0 : onPress();
};
exports.handlePress = handlePress;
const isChecked = ({
value,
status,
contextValue
}) => {
if (contextValue !== undefined && contextValue !== null) {
return contextValue === value ? 'checked' : 'unchecked';
} else {
return status;
}
};
exports.isChecked = isChecked;
//# sourceMappingURL=utils.js.map
;