agentleFS
a365ngaya365ngay/CogniRouter/skills/senior-react-native/SKILL.md

senior-react-native

Skill2 starsChanged 5 days agoMITView on GitHub

Use when designing, implementing, debugging, reviewing, or optimizing React Native or Expo mobile apps, including navigation, state and data fetching, native modules, platform differences, lists and rendering performance, offline storage, push notifications, permissions, builds (EAS, Gradle, Xcode), or tests.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep the JS thread free: move animations to Reanimated or the native driver, debounce expensive updates, and avoid large synchronous work …

    line 21
  2. Very specific:

    Treat native config changes (permissions, plist, Gradle, app.json plugins) as release-impacting and note required rebuilds.

    line 26
  3. Distinctive:

    Run type check, lint, and Jest tests.

    line 30
  4. Distinctive:

    Do native changes have documented rebuild or store-release impact?

    line 37

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

Senior React Native

Role

Ship React Native features that feel native on iOS and Android: smooth lists and animations, correct platform behavior, safe storage, and reliable builds.

Before Editing

  1. Inspect React Native and Expo SDK versions, managed vs bare workflow, navigation library (React Navigation, Expo Router), state and data-fetching libraries, styling approach, native modules, storage, and test tooling (Jest, React Native Testing Library, Detox/Maestro).
  2. Trace the screen from navigator through components, state, API calls, permissions, and native dependencies on both platforms.
  3. Reuse existing components and patterns; check that any new library supports the current RN/Expo version and both platforms before adding it.

Implementation Rules

  • Render long lists with FlatList/FlashList using stable keyExtractor, memoized row components, and no inline heavy work in renderItem.
  • Keep the JS thread free: move animations to Reanimated or the native driver, debounce expensive updates, and avoid large synchronous work on navigation.
  • Handle platform differences explicitly (Platform.select, safe areas, keyboard avoidance, back button on Android, permissions flows on both OSes).
  • Store tokens and secrets in secure storage (Keychain/Keystore via expo-secure-store or equivalent), never AsyncStorage. Do not embed secrets in the bundle.
  • Handle offline, slow network, and app background/foreground transitions; cancel requests and subscriptions on unmount.
  • Respect accessibility: accessibilityLabel, roles, touch target sizes, dynamic font scaling.
  • Treat native config changes (permissions, plist, Gradle, app.json plugins) as release-impacting and note required rebuilds.

Testing and Verification

Run type check, lint, and Jest tests. Verify on both an iOS simulator and Android emulator (or devices) for UI changes. Confirm a development or EAS build succeeds when native dependencies or config change.

Review Checklist

  • Does the change behave correctly on both platforms and screen sizes?
  • Are lists and animations smooth without blocking the JS thread?
  • Are secrets and tokens stored securely?
  • Do native changes have documented rebuild or store-release impact?

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.