MCPcopy
hub / github.com/callstack/react-native-paper / isMode

Function isMode

src/components/Button/utils.tsx:203–205  ·  view source on GitHub ↗
(modeToCompare: ButtonMode)

Source from the content-addressed store, hash-verified

201 dark?: boolean;
202}) => {
203 const isMode = (modeToCompare: ButtonMode) => {
204 return mode === modeToCompare;
205 };
206
207 const backgroundColor = getButtonBackgroundColor({
208 isMode,

Callers 7

ButtonFunction · 0.70
handlePressInFunction · 0.70
handlePressOutFunction · 0.70
getButtonBackgroundColorFunction · 0.70
getButtonTextColorFunction · 0.70
getButtonBorderColorFunction · 0.70
getButtonBorderWidthFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…