Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    React Native Code Review and Best Practices

    by Saizul Amin

    1

    Audit React Native and Expo apps for New Architecture compatibility, Hermes optimization, and performance bottlenecks.

    $6

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    React Native Code Review and Best Practices

    React Native Code Review and Best Practices

    Example session with this skill installed

    Run the React Native Code Review and Best Practices skill on my project and give me a prioritised list of what to fix, with exact changes.

    • Read your context and instructions
    • Compiled the react native code

    Here is what the React Native Code Review and Best Practices skill produced.

    Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.

    Output

    react-native 0.79.5  expo -
    MEDIUM [engine.hermes_off] android/gradle.properties: hermesEnabled=false
           -> enable Hermes: faster startup, less memory, smaller bundles
    MEDIUM [engine.hermes_off] ios/Podfile: :hermes_enabled => false
           -> remove it (Hermes is the default) and run pod install
    MEDIUM [arch.legacy] android/gradle.properties newArchEnabled=false; ios/Podfile RCT_NEW_ARCH_ENABLED=0: New Architecture disabled; 0.81 / Expo SDK 54 are the last versions allowing this
           -> migrate libraries, enable it, then upgrade (see references/new-architecture.md)
    MEDIUM [deps.advice] package.json @react-native-community/async-storage: deprecated package name
           -> switch to @react-native-async-storage/async-storage
    MEDIUM [deps.advice] package.json react-native-camera: deprecated and unmaintained
           -> use react-native-vision-camera or expo-camera
    MEDIUM [security.token_in_asyncstorage] src/screens/Budgets.tsx:7: secret stored in AsyncStorage (unencrypted)
           -> use react-native-keychain or expo-secure-store
    LOW    [deps.advice] package.json moment: moment is large and in maintenance mode
           -> use date-fns, dayjs or Intl APIs
    LOW    [deps.advice] package.json lodash: full lodash import adds weight
           -> import per method (lodash/debounce) or use lodash-es
    LOW    [lint.none] package.json: no ESLint setup
           -> add @react-native/eslint-config (or eslint-config-expo) and run it in CI
    LOW    [deps.lodash_full] src/screens/Budgets.tsx:3: imports all of lodash
           -> import the method: import debounce from 'lodash/debounce'
    LOW    [perf.scrollview_map] src/screens/Budgets.tsx:14: ScrollView renders every mapped child at once
           -> use FlatList / FlashList for long or dynamic lists
    LOW    [net.plain_http] src/screens/Budgets.tsx:23: plain HTTP URL (blocked by default on Android 9+ and iOS ATS)
           -> use HTTPS
    INFO   [build.r8_off] android/app/build.gradle: enableProguardInReleaseBuilds = false
           -> enable it for release, add keep rules for reflection-based libraries, test the release build
    INFO   [perf.native_driver_off] src/screens/Budgets.tsx:12: animation runs on the JS thread
           -> use useNativeDriver: true for transform/opacity, or Reanimated
    INFO   [perf.flatlist_key] src/screens/Budgets.tsx:18: FlatList without keyExtractor
           -> add keyExtractor={item => item.id} so rows are reused correctly
    INFO   [perf.console_log] 1 file(s): 1 console.log call(s) and no transform-remove-console in Babel
           -> strip console.* in production builds (babel-plugin-transform-remove-console)
    
    16 finding(s)
    

    What you do next

    1. Fix the highest-severity items first.
    2. Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
    3. Keep the skill installed and re-run it whenever the project changes.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    React Native apps often suffer from janky animations, slow startup, and outdated architectures that block upgrades. This skill audits your codebase to enforce the New Architecture, Hermes engine, and modern performance standards.

    What it does

    • Architecture audit checks for New Architecture opt-outs and legacy bridge dependencies.
    • Engine optimization detects disabled Hermes flags in Gradle and Podfiles to improve memory and startup.
    • Performance profiling identifies list bottlenecks like ScrollView mapping and suggests FlashList or FlatList optimizations.
    • Dependency vetting flags deprecated or heavy libraries like moment or react-native-camera and suggests modern alternatives.
    • Security hardening finds sensitive tokens stored in plain text and verifies R8/ProGuard configurations.

    How it works

    1. System check asks the user to run official diagnostics like npx expo-doctor or react-native info to establish a baseline.
    2. Static audit runs a Python-based scanner across package.json, app.json, and native configuration files to surface anti-patterns.
    3. Compatibility check evaluates native modules against the New Architecture (Fabric/TurboModules) using community registry data.
    4. Step-wise migration provides a prioritized roadmap for engine activation, library replacement, and version upgrades.

    Frameworks & tools

    React Native (Bare and Expo), Hermes, Reanimated, FlashList, and standard Android/iOS build tools.

    Why this beats prompting it yourself

    Generic prompts often miss the specific flags in gradle.properties or Podfile that silent-fail the New Architecture. This skill uses a specialized script to find hard-coded opt-outs that LLMs cannot see without systematic file traversal.

    Use cases

    • Preparing a legacy React Native 0.7x app for a 0.8x New Architecture migration.
    • Debugging dropped frames in complex lists or navigation transitions.
    • Auditing a project before a production release to ensure logs are stripped and storage is secure.
    • Evaluating a third-party codebase during a handoff or technical due diligence.

    Known limitations

    Static analysis cannot catch runtime memory leaks; use React DevTools or native profilers for deep memory debugging. External library support data depends on community registry accuracy.


    Open source: saizul/mobile-app-skills on GitHub (MIT licence, by Saizul Amin).

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Mobile Development.

    Static analysis tool only. Cannot detect runtime memory leaks or logic bugs. Requires React Native CLI or Expo tools for source-of-truth diagnostics.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Frequently Asked Questions

    This skill focuses on the difficult transition to the New Architecture (Fabric/TurboModules), specifically finding hidden flags in native configuration files that standard AI prompts and linting tools often overlook.

    The skill is fully compatible with both Expo (Managed and Development Builds) and React Native CLI (Bare) projects, covering configurations for both Android (Gradle) and iOS (CocoaPods).

    You will receive the specialized auditing script, a set of automated diagnostic workflows, and a prioritized migration template to guide your team through the upgrade process.

    While the skill identifies performance bottlenecks like unoptimized lists and bridge congestion, it is a static analysis tool; it does not replace runtime profiling tools like Flipper or the React DevTools for tracking live memory leaks.

    The skill includes a community-updated registry check to verify if your current third-party libraries support TurboModules or if they require specific patches to run on the New Architecture.

    This skill is designed to work with any agent that supports file-system access and Python-based script execution, allowing it to traverse your project directory and analyze native build files.

    New in Mobile Development