agentleFS
evolplusevolplus/talos/skills/react-native-platform-integration/SKILL.md

react-native-platform-integration

Skill9 starsChanged 6 months agoApache-2.0View on GitHub

React Native and Expo native/platform integration guidance for FE Dev. Use when a task touches Expo config, native iOS/Android files, permissions, deep links, push notifications, secure storage, app lifecycle, native modules, build settings, or platform-specific behavior.

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 12 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use this for React Native/Expo work that crosses the JS/native boundary: native modules, permissions, platform files, app config, deep …

    line 14
  2. Distinctive:

    Check authorization before changing platform capabilities:

    line 27
  3. Distinctive:

    if the requirement is absent, halt with an OQ instead of silently adding capability.

    line 29
  4. Distinctive:

    use SRS §3.4.6 keys and existing config loaders.

    line 31
  5. Very specific:

    keep dev/staging/prod endpoints out of source literals.

    line 32
  6. Distinctive:

    Keep permission UX complete:

    line 34
  7. Distinctive:

    update iOS usage descriptions and Android permission declarations.

    line 35
  8. Very specific:

    use .ios.tsx / .android.tsx, platform adapters, or config modules for real divergence.

    line 39
  9. Distinctive:

    keep shared UI unaware of native file details.

    line 40
  10. Distinctive:

    run at least one affected platform build/check when native files or permissions change.

    line 42
  11. Very specific:

    test deep links, push/open flows, storage migration, or lifecycle paths on the relevant simulator/emulator/device.

    line 43
  12. Distinctive:

    Do not add native capabilities or permissions without SRS/architecture coverage.

    line 48
  13. Distinctive:

    Do not store tokens or secrets in plain async storage.

    line 49
  14. Distinctive:

    Do not edit generated native files in Expo managed/prebuild projects unless that is the established project workflow.

    line 50
  15. Distinctive:

    Do not let iOS and Android selector IDs diverge unless the instrumentation contract explicitly declares platform-specific IDs.

    line 51

≈ “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 Platform Integration

When to use

Use this for React Native/Expo work that crosses the JS/native boundary: native modules, permissions, platform files, app config, deep links, push notifications, background tasks, secure storage, lifecycle hooks, or iOS/Android-specific behavior. Load it alongside react-native-implementation.

Inputs and outputs

  • Inputs: SRS/architecture permission and platform requirements, API contracts, env configuration, existing Expo/bare RN setup, iOS/Android project files, current native module inventory.
  • Outputs: platform changes that are approved by architecture, configured per environment, covered by smoke/build checks, and documented in task notes or deploy reports when QA/DevOps needs them.

Procedure

  1. Classify the runtime:
    • Expo managed: prefer config plugins and Expo APIs already present;
    • Expo prebuild: understand generated native files and project rules before editing;
    • bare RN: edit native iOS/Android files directly only when the task requires it.
  2. Check authorization before changing platform capabilities:
    • new permissions, native modules, background modes, push notifications, app groups, associated domains, and platform services require architecture/dependency approval;
    • if the requirement is absent, halt with an OQ instead of silently adding capability.
  3. Implement environment-safe config:
    • use SRS §3.4.6 keys and existing config loaders;
    • keep dev/staging/prod endpoints out of source literals;
    • expose only non-secret values to JS bundles.
  4. Keep permission UX complete:
    • update iOS usage descriptions and Android permission declarations;
    • provide user-facing rationale/copy where required by the feature;
    • handle denied, restricted, unavailable, and recoverable states in UI.
  5. Isolate platform differences:
    • use .ios.tsx / .android.tsx, platform adapters, or config modules for real divergence;
    • keep shared UI unaware of native file details.
  6. Verify platform behavior:
    • run at least one affected platform build/check when native files or permissions change;
    • test deep links, push/open flows, storage migration, or lifecycle paths on the relevant simulator/emulator/device;
    • record any platform that could not be checked.

Hard rules

  • Do not add native capabilities or permissions without SRS/architecture coverage.
  • Do not store tokens or secrets in plain async storage.
  • Do not edit generated native files in Expo managed/prebuild projects unless that is the established project workflow.
  • Do not let iOS and Android selector IDs diverge unless the instrumentation contract explicitly declares platform-specific IDs.

References

  • ../react-native-implementation/SKILL.md - baseline RN implementation discipline.
  • ../react-native-performance/SKILL.md - performance review for native bridge or platform-heavy changes.
  • ../third-party-dependency-evaluation/SKILL.md - dependency approval for native modules.
  • ../local-deployment/SKILL.md - deploy/env evidence consumed by QA.

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.