MCPcopy
hub / github.com/testshallpass/react-native-dropdownalert / _renderMessage

Function _renderMessage

DropdownAlert.tsx:527–543  ·  view source on GitHub ↗
(message?: string)

Source from the content-addressed store, hash-verified

525 }
526
527 function _renderMessage(message?: string) {
528 if (renderMessage) {
529 return renderMessage(alertData);
530 }
531 if (!message || message.length === 0) {
532 return null;
533 }
534 return (
535 <Text
536 style={messageTextStyle}
537 numberOfLines={messageNumberOfLines}
538 testID={DropDownAlertTestID.Title}
539 {...messageTextProps}>
540 {message}
541 </Text>
542 );
543 }
544
545 function _renderCancel() {
546 const _onCancel = () => _dismiss(DropdownAlertDismissAction.Cancel);

Callers 1

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