MCPcopy Create free account
hub / github.com/callstack/react-native-paper / getIOSRippleColor

Function getIOSRippleColor

src/components/Checkbox/utils.ts:147–163  ·  view source on GitHub ↗
({
  theme,
  checkedColor,
  disabled,
}: {
  theme: InternalTheme;
  checkedColor: string;
  disabled?: boolean;
})

Source from the content-addressed store, hash-verified

145};
146
147const getIOSRippleColor = ({
148 theme,
149 checkedColor,
150 disabled,
151}: {
152 theme: InternalTheme;
153 checkedColor: string;
154 disabled?: boolean;
155}) => {
156 if (disabled) {
157 if (theme.isV3) {
158 return color(theme.colors.onSurface).alpha(0.16).rgb().string();
159 }
160 return color(theme.colors.text).alpha(0.16).rgb().string();
161 }
162 return color(checkedColor).fade(0.32).rgb().string();
163};
164
165export const getSelectionControlIOSColor = ({
166 theme,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…