agentleFS
evolplusevolplus/talos/skills/react-native-implementation/SKILL.md

react-native-implementation

Skill9 starsChanged 6 months agoApache-2.0View on GitHub

React Native and Expo implementation guidance for FE Dev. Use after fe-framework-coding-standard selects React Native, when building or reviewing screens, components, navigation, state, styling, accessibility, selectors, and ordinary tests without changing native modules.

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. About 0 are common, 11 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this after fe-framework-coding-standard selects React Native for the task surface.

    line 14
  2. Distinctive:

    Keep screen boundaries thin:

    line 30
  3. Distinctive:

    Use project-native state and data patterns:

    line 38
  4. Distinctive:

    do not add a store/query library for one task.

    line 39
  5. Distinctive:

    keep optimistic updates reversible and user-visible on failure.

    line 41
  6. Very specific:

    use Pressable or project button components for interactions.

    line 45
  7. Very specific:

    use FlatList / SectionList for dynamic or large lists with stable keys and empty/refresh states.

    line 46
  8. Distinctive:

    Add accessibility and instrumentation:

    line 47
  9. Very specific:

    use accessibilityRole, accessibilityLabel, and accessibilityHint when visible content is insufficient.

    line 48
  10. Very specific:

    add testID values only from docs/instrumentation-contract.md.

    line 49
  11. Distinctive:

    keep a minimum 44 x 44 logical pixel touch target unless the project standard is stricter.

    line 50
  12. Distinctive:

    update Jest / React Native Testing Library tests for rendering, validation, and state transitions.

    line 52
  13. Very specific:

    update Detox/Maestro only when the task changes a critical flow, following ui-test-execution.

    line 53
  14. Distinctive:

    run the project's lint, typecheck, Jest, and relevant platform build/test command when touched files require it.

    line 54
  15. Very specific:

    Do not mix routing approaches or introduce a new state/styling/test framework without an approved ADR.

    line 58
  16. Distinctive:

    Do not hardcode API URLs, environment names, platform domains, secrets, or selector IDs.

    line 59
  17. Very specific:

    Do not scatter Platform.OS branches through UI trees when a platform adapter or .ios.tsx / .android.tsx file is clearer.

    line 60
  18. Distinctive:

    Do not use DOM APIs, browser-only globals, or CSS assumptions in shared React Native code.

    line 61
  19. Distinctive:

    Do not close the task while any required manifest row is missing from source or tests.

    line 62

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

React Native Implementation

When to use

Use this after fe-framework-coding-standard selects React Native for the task surface. This is the default React Native implementation skill for UI, state, navigation, styling, accessibility, instrumentation, and normal component/unit test work.

For native modules, permissions, deep links, app config, or platform files, also load react-native-platform-integration. For large lists, image-heavy screens, animations, slow interactions, startup, or memory issues, also load react-native-performance.

Inputs and outputs

  • Inputs: task file, SRS Frontend-Framework: and §3.4.5 source layout, §3.4.6 frontend env keys, design handoff, Design Element Manifest, visual spec, instrumentation contract, API contracts, current RN/Expo source tree.
  • Outputs: React Native/Expo code that fits the existing app architecture, implements every manifest row, uses declared runtime config, exposes stable selectors, preserves accessibility, and updates relevant unit/component tests.

Procedure

  1. Identify the app shape before editing:
    • Expo managed / Expo prebuild / bare React Native;
    • routing: Expo Router, React Navigation, or project wrapper;
    • state: project server-state and client-state libraries;
    • styling: design system, tokens, StyleSheet, NativeWind, Tamagui, Dripsy, Restyle, or local convention.
  2. Keep screen boundaries thin:
    • screens own route params, navigation, permissions, data loading, and orchestration;
    • feature components render manifest sections and emit typed events;
    • hooks/services own reusable data access and side effects.
  3. Implement from the Design Element Manifest:
    • render every field, label, placeholder, action, state copy, list/card item, and modal/toast row;
    • preserve Figma order unless product behavior requires a documented deviation;
    • include loading, empty, validation error, recoverable error, disabled, permission-denied, and optimistic rollback states where applicable.
  4. Use project-native state and data patterns:
    • do not add a store/query library for one task;
    • guard stale async results when route params change or screens unmount;
    • keep optimistic updates reversible and user-visible on failure;
    • store only durable preferences in async storage and secrets only in approved secure storage.
  5. Build mobile-safe UI:
    • handle safe areas, status bars, keyboard overlap, home indicators, scroll insets, orientation, and text scaling;
    • use Pressable or project button components for interactions;
    • use FlatList / SectionList for dynamic or large lists with stable keys and empty/refresh states.
  6. Add accessibility and instrumentation:
    • use accessibilityRole, accessibilityLabel, and accessibilityHint when visible content is insufficient;
    • add testID values only from docs/instrumentation-contract.md;
    • keep a minimum 44 x 44 logical pixel touch target unless the project standard is stricter.
  7. Test and verify:
    • update Jest / React Native Testing Library tests for rendering, validation, and state transitions;
    • update Detox/Maestro only when the task changes a critical flow, following ui-test-execution;
    • run the project's lint, typecheck, Jest, and relevant platform build/test command when touched files require it.

Hard rules

  • Do not mix routing approaches or introduce a new state/styling/test framework without an approved ADR.
  • Do not hardcode API URLs, environment names, platform domains, secrets, or selector IDs.
  • Do not scatter Platform.OS branches through UI trees when a platform adapter or .ios.tsx / .android.tsx file is clearer.
  • Do not use DOM APIs, browser-only globals, or CSS assumptions in shared React Native code.
  • Do not close the task while any required manifest row is missing from source or tests.

References

  • ../fe-framework-coding-standard/SKILL.md - framework router and universal FE rules.
  • ../react-native-performance/SKILL.md - React Native render, list, image, animation, and startup performance.
  • ../react-native-platform-integration/SKILL.md - native modules, permissions, deep links, app config, storage, and platform files.
  • ../ui-test-execution/SKILL.md - Detox/Maestro selector, fixture, determinism, and reporting rules.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.