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

Function renderBadge

docs/component-docs-plugin/generatePageMDX.js:5–10  ·  view source on GitHub ↗
(annotation)

Source from the content-addressed store, hash-verified

3const { baseUrl, customFields } = config;
4
5function renderBadge(annotation) {
6 const [annotType, ...annotLabel] = annotation.split(' ');
7
8 // eslint-disable-next-line prettier/prettier
9 return `<span class="badge badge-${annotType.replace('@', '')} "><span class="badge-text">${annotLabel.join(' ')}</span></span>`;
10}
11
12function generateKnownIssues(componentName) {
13 const componentKnownIssues = customFields.knownIssues[componentName];

Callers 1

generatePropsTableFunction · 0.70

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…