creating-screens

Create screens and routes in the Eigen React Native app with Relay GraphQL.

3.8k|591|Updated Jan 22, 2015
One-click install
npx skills add https://github.com/artsy/eigen --skill creating-screens
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: creating-screens
Source: https://github.com/artsy/eigen/tree/main/.claude/skills/creating-screens
Command: npx skills add https://github.com/artsy/eigen --skill creating-screens

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

This Skill streamlines the process of adding new screens and navigation routes to the Eigen React Native application, ensuring consistency and adherence to best practices.

Core Features & Use Cases

  • Simple Screen Creation: Guides through creating basic screens without data fetching.
  • Relay Screen Creation: Assists in setting up screens that utilize GraphQL for data fetching.
  • Route Registration: Provides clear examples for registering new routes in the navigation system.
  • Deep Linking Setup: Includes instructions for enabling deep linking on Android.

Quick Start

Use the creating-screens skill to add a new Relay screen for viewing artist details.

Frequently Asked Questions about creating-screens

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add new screens and navigation routes to a React Native app?

To add new screens and navigation routes in React Native, you register the route in the navigation system and create a screen file following specific naming conventions and folder locations. This ensures proper route setup and maintainability.

How do I set up a Relay screen with GraphQL data fetching in React Native?

Setting up a Relay screen with GraphQL in React Native requires using Relay query directives and implementing null checks to handle data fetching safely. This ensures your screen correctly retrieves and renders GraphQL data without crashing.

Does adding a new route require specific file naming conventions and testing?

Adding a new route requires strict adherence to file location and naming conventions, alongside comprehensive testing, linting, and formatting. These rules are enforced to maintain codebase consistency and prevent navigation errors.

Can I enable deep linking for new screens on Android?

Deep linking for new screens can be enabled on Android by following specific setup instructions during route registration. This allows users to navigate directly to your screen via external links or notifications.

Why does route order matter when registering new navigation screens?

Route order matters when registering navigation screens because the navigation system evaluates routes sequentially to match paths. Incorrect ordering can cause deep links to resolve to the wrong screen or fail entirely.