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

Function triggerLayout

src/components/__tests__/ProgressBar.test.tsx:24–30  ·  view source on GitHub ↗
(
  tree: ReturnType<typeof render>
)

Source from the content-addressed store, hash-verified

22
23const a11yRole = 'progressbar';
24const triggerLayout = async (
25 tree: ReturnType<typeof render>
26): Promise<void> => {
27 await act(async () => {
28 tree.getByRole(a11yRole).props.onLayout(layoutEvent);
29 });
30};
31
32class ClassProgressBar extends React.Component<Props> {
33 render() {

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…