@nexara/nativeflow
Version:
Beautiful, responsive, and customizable UI components for React Native – built for performance and seamless experiences.
14 lines (13 loc) • 593 B
JavaScript
;
const generateColors = (theme, isError, cursorColor, placeholderColor, labelColor) => {
const computedCursorColor = isError ? theme.colors.semantic.danger : cursorColor ?? theme.colors.brand.primary;
const computedPlaceholderColor = placeholderColor ?? theme.colors.typography.tertiary;
const computedLabelColor = isError ? theme.colors.semantic.danger : labelColor ?? theme.colors.typography.primary;
return {
computedCursorColor,
computedPlaceholderColor,
computedLabelColor
};
};
export default generateColors;
//# sourceMappingURL=generateColors.js.map