everything-react-native-expo: Cursor rule for Cursor

.cursorrules

cursorrules is a cursor rule for Cursor from JubaKitiashvili/everything-react-native-expo. It costs 483 tokens per session, scanned A, original, MIT.

A set of coding rules for React Native and Expo, tools for building mobile apps with React and JavaScript or TypeScript.

In plain words
What is it for?
It is for guiding component and hook changes, imports, styling, image and animation choices, and Jest, React Native Testing Library, and Detox tests.
Why use it?
It gives an AI coding agent consistent instructions for code style, performance, security, and testing instead of leaving those choices unspecified.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

This is JubaKitiashvili/everything-react-native-expo's own configuration. It tells Cursor how to work on everything-react-native-expo itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything everything-react-native-expo configures →

Reuse

Borrowing it

Nothing to install: this file belongs to JubaKitiashvili/everything-react-native-expo. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/JubaKitiashvili/everything-react-native-expo/main/.cursorrules
Clone the repo
git clone --depth 1 https://github.com/JubaKitiashvili/everything-react-native-expo

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cursorrules

README.md
[![agentmods](https://agentmods.dev/badge/rules/jubakitiashvili/everything-react-native-expo/cursorrules/github.svg)](https://agentmods.dev/rules/jubakitiashvili/everything-react-native-expo/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/jubakitiashvili/everything-react-native-expo/cursorrules"><img src="https://agentmods.dev/badge/rules/jubakitiashvili/everything-react-native-expo/cursorrules/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cursorrules

Your own site · 80×15
<a href="https://agentmods.dev/rules/jubakitiashvili/everything-react-native-expo/cursorrules"><img src="https://agentmods.dev/badge/rules/jubakitiashvili/everything-react-native-expo/cursorrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 483 This file is loaded in full into every session.
When invoked 483 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00483 $0.00483
Opus 5.5 $0.00193 $0.00193
Sonnet 5.5 $0.00097 $0.00097
Haiku 4.5 $0.00048 $0.00048

Measured 2d ago against content hash ba1661ccfa90, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cursorrules scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.cursorrules · 58 lines

What it actually says

You are an expert React Native and Expo developer working in an ERNE-powered project.

Stack

  • TypeScript (strict), React Native, Expo (managed or bare)
  • Expo Router (file-based navigation)
  • Zustand (client state) + TanStack Query (server state)
  • Jest + React Native Testing Library + Detox

Code Style

  • Functional components only: const Component = () => {}
  • Named exports only, no default exports
  • PascalCase for components/types, camelCase for functions/hooks
  • Import order: react → react-native → expo → third-party → internal → types
  • Max 250 lines per component — extract if larger
  • StyleSheet.create() always — never inline styles

Performance

  • React.memo, useMemo, useCallback where measurable
  • FlashList over FlatList for 100+ item lists
  • No anonymous functions in JSX render props
  • Images: WebP, explicit dimensions, caching
  • Animations: react-native-reanimated (UI thread)
  • JS bundle under 1.5MB

Testing

  • Every component/hook gets a test file
  • Test user behavior, not implementation details
  • Mock native modules in __mocks__/
  • Detox for E2E critical paths

Security

  • Never hardcode secrets — use env vars
  • Validate all deep link parameters
  • SSL pinning for sensitive APIs
  • Use secure storage for tokens (expo-secure-store, react-native-keychain, etc.)

State Management

  • Zustand: UI state, preferences, navigation state
  • TanStack Query: API data, caching, refetching
  • Never mix concerns between the two

Expo

  • Prefer Expo SDK modules over community packages
  • app.config.ts for dynamic config
  • Config plugins for native customization
  • EAS Build for CI/CD, EAS Update for OTA
  • File-based routing with Expo Router
  • Typed routes via expo-router/typed-routes
  • _layout.tsx for shared UI (headers, tabs)
  • Validate deep link params before navigating

Git

  • Conventional Commits: feat:, fix:, refactor:, test:, docs:, chore:
  • Branch naming: feat/, fix/, refactor/ prefix
  • One logical change per commit
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 58 lines · 483 tokens per session scan A ba1661ccfa90

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository JubaKitiashvili/everything-react-native-expo (48 stars, last pushed 2d ago), licensed MIT. It adds 483 tokens to every session, about $0.0019 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-09.