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

Function onAccordionPress

example/src/Examples/TextInputExample.tsx:160–161  ·  view source on GitHub ↗
(id: string | number)

Source from the content-addressed store, hash-verified

158 const [expandedId, setExpandedId] = React.useState<ExpandedId>('flat');
159
160 const onAccordionPress = (id: string | number) =>
161 setExpandedId(expandedId === id ? undefined : id);
162
163 return (
164 <TextInputAvoidingView>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…