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