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

Function getIOSCheckedColor

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

Source from the content-addressed store, hash-verified

118};
119
120const getIOSCheckedColor = ({
121 theme,
122 disabled,
123 customColor,
124}: {
125 theme: InternalTheme;
126 customColor?: string;
127 disabled?: boolean;
128}) => {
129 if (disabled) {
130 if (theme.isV3) {
131 return theme.colors.onSurfaceDisabled;
132 }
133 return theme.colors.disabled;
134 }
135
136 if (customColor) {
137 return customColor;
138 }
139
140 if (theme.isV3) {
141 return theme.colors.primary;
142 }
143
144 return theme.colors.accent;
145};
146
147const getIOSRippleColor = ({
148 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…