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

Function isChecked

src/components/RadioButton/utils.ts:23–37  ·  view source on GitHub ↗
({
  value,
  status,
  contextValue,
}: {
  value: string;
  status?: 'checked' | 'unchecked';
  contextValue?: string;
})

Source from the content-addressed store, hash-verified

21};
22
23export const isChecked = ({
24 value,
25 status,
26 contextValue,
27}: {
28 value: string;
29 status?: 'checked' | 'unchecked';
30 contextValue?: string;
31}) => {
32 if (contextValue !== undefined && contextValue !== null) {
33 return contextValue === value ? 'checked' : 'unchecked';
34 } else {
35 return status;
36 }
37};

Callers 3

RadioButtonItemFunction · 0.90
RadioButtonAndroidFunction · 0.90
RadioButtonIOSFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…