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

Function renderChildrenWithWrapper

src/components/Snackbar.tsx:273–292  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

271 };
272
273 const renderChildrenWithWrapper = () => {
274 if (typeof children === 'string') {
275 return (
276 <Text
277 variant="bodyMedium"
278 style={[styles.content, { color: textColor }]}
279 maxFontSizeMultiplier={maxFontSizeMultiplier}
280 >
281 {children}
282 </Text>
283 );
284 }
285
286 return (
287 <View style={[styles.content, contentStyle]}>
288 {/* View is added to allow multiple lines support for Text component as children */}
289 <View>{children}</View>
290 </View>
291 );
292 };
293
294 return (
295 <View

Callers 1

SnackbarFunction · 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…