From eee32166b35eaf550efa275c1811d65b5a18e63a Mon Sep 17 00:00:00 2001 From: Bartosz Kaszubowski Date: Mon, 16 Mar 2026 19:35:57 +0100 Subject: [PATCH] list `rn-directory` CLI on tools page, small tweaks --- components/Tools/GitHubButton.tsx | 2 +- components/Tools/ToolEntry.tsx | 7 ++++--- pages/tools.tsx | 21 +++++++++++++++++++++ scenes/PackageScoreScene.tsx | 8 ++++---- 4 files changed, 30 insertions(+), 8 deletions(-) diff --git a/components/Tools/GitHubButton.tsx b/components/Tools/GitHubButton.tsx index f3db780c1..c13f77685 100644 --- a/components/Tools/GitHubButton.tsx +++ b/components/Tools/GitHubButton.tsx @@ -12,7 +12,7 @@ export default function GitHubButton({ href }: Props) { diff --git a/components/Tools/ToolEntry.tsx b/components/Tools/ToolEntry.tsx index 1e1c442f3..540f2a84c 100644 --- a/components/Tools/ToolEntry.tsx +++ b/components/Tools/ToolEntry.tsx @@ -1,3 +1,4 @@ +import { type ReactNode } from 'react'; import { View } from 'react-native'; import { H3, P } from '~/common/styleguide'; @@ -8,7 +9,7 @@ import GitHubButton from './GitHubButton'; type Props = { name: string; - description: string; + description: ReactNode; githubUrl: string; buttons: { label: string; @@ -19,8 +20,8 @@ type Props = { export default function ToolEntry({ name, description, githubUrl, buttons }: Props) { return ( -

{name}

-

{description}

+

{name}

+

{description}

{buttons.map(({ label, href }) => ( diff --git a/pages/tools.tsx b/pages/tools.tsx index 5af936f95..c23e85400 100644 --- a/pages/tools.tsx +++ b/pages/tools.tsx @@ -17,6 +17,27 @@ export default function Tools() { description="List of development tools, apps and websites using React Native Directory data." /> + + Propose new entries to React Native Directory directly from your terminal. The{' '} + + rn-directory + {' '} + CLI gathers the required information manually or automatically, creates a fork, and + opens a pull request on behalf of the user currently logged in to the GitHub CLI. + + } + githubUrl="https://github.com/Simek/rn-directory" + buttons={[ + { + label: 'npm Registry', + href: 'https://www.npmjs.com/package/rn-directory', + }, + ]} + /> -
Directory score
+ Directory score {library.score}/100 @@ -67,7 +67,7 @@ export default function PackageScoreScene({ apiData, packageName }: PackageScore
-
Matching criteria
+ Matching criteria {SCORING_CRITERIONS.filter(({ name }) => library.matchingScoreModifiers.includes(name) @@ -77,7 +77,7 @@ export default function PackageScoreScene({ apiData, packageName }: PackageScore ))} -
Not matched criteria
+ Not matched criteria {SCORING_CRITERIONS.filter( ({ name }) => !library.matchingScoreModifiers.includes(name)