MCPcopy
hub / github.com/callstack/react-native-testing-library / withHiddenStyle

Function withHiddenStyle

src/render.tsx:128–134  ·  view source on GitHub ↗
(style: StyleProp<StyleLike>)

Source from the content-addressed store, hash-verified

126type StyleLike = Record<string, unknown>;
127
128function withHiddenStyle(style: StyleProp<StyleLike>): StyleProp<StyleLike> {
129 if (style == null) {
130 return { display: 'none' };
131 }
132
133 return [style, { display: 'none' }];
134}

Callers 1

renderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…