UNPKG

react-native-paper

Version:
23 lines (22 loc) 590 B
export const handlePress = ({ onPress, value, onValueChange }) => { if (onPress && onValueChange) { console.warn(`onPress in the scope of RadioButtonGroup will not be executed, use onValueChange instead`); } 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