nickthelegend/expo-ahmedbna-ui-skills/expo-pie-chart

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 Pie-chart Chart.

Install

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

SKILL.md

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

Expo Pie-chart

Overview

A high-performance pie-chart chart 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 { useColor } from '@/hooks/useColor';
import { useEffect, useState } from 'react';
import { LayoutChangeEvent, View, ViewStyle } from 'react-native';
import Animated, {
useAnimatedProps,
useSharedValue,
withTiming,
} from 'react-native-reanimated';
import Svg, { G, Path, Text as SvgText } from 'react-native-svg';
// Animated SVG Components
const AnimatedPath = Animated.createAnimatedComponent(Path);
interface ChartConfig {
width?: number;
height?: number;
showLabels?: boolean;
animated?: boolean;
duration?: number;
}
interface ChartDataPoint {
label: string;
value: number;
color?: string;
}
type Props = {
data: ChartDataPoint[];
config?: ChartConfig;
style?: ViewStyle;
};
export const PieChart = ({ data, config = {}, style }: Props) => {
const [containerWidth, setContainerWidth] = useState(300);
const {
height = 200,
showLabels = true,
animated =
// ... (Code truncated, see references/ for full source)

Usage Example

tsx
import { PieChart } from '@/components/charts/pie-chart';
import { ChartContainer } from '@/components/charts/chart-container';
import React from 'react';
const sampleData = [
{ label: 'Sales', value: 120 },
{ label: 'Marketing', value: 98 },
{ label: 'Support', value: 86 },
{ label: 'Development', value: 140 },
{ label: 'Design', value: 75 },
{ label: 'HR', value: 65 },
];
export function PieChartDemo() {
return (
<ChartContainer
title='Department Performance'
description='Quarterly performance metrics by department'
>
<PieChart
data={sampleData}
config={{
height: 300,
showLabels: true,
animated: true,
duration: 1000,
}}
/>
</ChartContainer>
);
}

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-pie-chart/badge)](https://verified-skill.com/skills/nickthelegend/expo-ahmedbna-ui-skills/expo-pie-chart)

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