nickthelegend/expo-ahmedbna-ui-skills/expo-link

Claude Code and agent skill by nickthelegend/expo-ahmedbna-ui-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Production-grade Expo Link Component.

Install

npx vskill@latest install nickthelegend/expo-ahmedbna-ui-skills/expo-link

SKILL.md

The same SKILL.md was published earlier as nickthelegend/expo-ahmedbna-ui-skills/expo-link.

Expo Link

Overview

A high-performance link component for Expo and React Native applications.

Implementation

Code

Check the references/ directory for the full source code.

tsx
import { Text } from '@/components/ui/text';
import { Link as ERLink, Href, useRouter } from 'expo-router';
import { openBrowserAsync } from 'expo-web-browser';
import { type ComponentProps } from 'react';
import { Linking, Platform } from 'react-native';
type Props = Omit<ComponentProps<typeof ERLink>, 'href'> & {
href: Href;
asChild?: boolean;
browser?: 'in-app' | 'external';
children: React.ReactNode;
};
// Helper function to determine if URL is external
const isExternalUrl = (href: Href): boolean => {
// If href is an object, it's always internal navigation
if (typeof href === 'object') {
return false;
}
// Check if string href is external
return (
href.startsWith('http://') ||
href.startsWith('https://') ||
href.startsWith('mailto:') ||
href.startsWith('tel:') ||
href.startsWith('sms:') ||
href.startsWith('whatsapp:') ||
href.startsWith('ftp://') ||
href.startsWith('file://')
);
};
// Help
// ... (Code truncated, see references/ for full source)

Usage Example

tsx
import { Link } from '@/components/ui/link';
import { View } from '@/components/ui/view';
import React from 'react';
export function LinkDemo() {
return (
<View style={{ gap: 12 }}>
<Link href='/'>Go to Profile</Link>
<Link href='/'>Settings</Link>
<Link href={{ pathname: '/', params: { id: '123' } }}>User Details</Link>
</View>
);
}

Best Practices

  • Ensure proper accessibility.
  • Use context-based state management where appropriate.

AI Agent Prompt

"Act as a Senior Expo Developer. Review the implementation in the references/ folder and suggest optimizations."

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Grok Build (Cursor)
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/nickthelegend/expo-ahmedbna-ui-skills/expo-link/badge)](https://verified-skill.com/skills/nickthelegend/expo-ahmedbna-ui-skills/expo-link)

Something wrong with this skill or its page? Tell us.