()
| 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 |
no outgoing calls
no test coverage detected
searching dependent graphs…