MCPcopy Create free account
hub / github.com/meliorence/react-native-render-html / Reference

Function Reference

apps/website/src/components/Reference.tsx:7–32  ·  view source on GitHub ↗
({
  url,
  type,
  member,
  name,
  full,
  plural
}: {
  name: string;
  member?: string;
  url: string;
  full: boolean;
  type: RefType | 'rnrh-prop' | 'api-def';
  plural?: boolean;
})

Source from the content-addressed store, hash-verified

5import Link from '@docusaurus/Link';
6
7export default function Reference({
8 url,
9 type,
10 member,
11 name,
12 full,
13 plural
14}: {
15 name: string;
16 member?: string;
17 url: string;
18 full: boolean;
19 type: RefType | 'rnrh-prop' | 'api-def';
20 plural?: boolean;
21}) {
22 const shouldWrapCode = type !== 'doc';
23 const pluralMark = plural ? 's' : '';
24 const fullName =
25 (member && full ? `${name}.${member}` : member ? member : name) +
26 pluralMark;
27 return (
28 <Link className={clsx(styles.ref, styles[`ref--${type}`])} to={url}>
29 {shouldWrapCode ? <code>{fullName}</code> : fullName}
30 </Link>
31 );
32}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…