rn-async-patterns

Installation
SKILL.md

React Native Async Patterns

Instructions

Always use async/await with typed errors and AbortController for cancellation. Never leak promises whose resolution outlives the component.

1. Cancellable Fetch

// src/shared/lib/http.ts
export class HttpError extends Error {
  constructor(public readonly status: number, public readonly url: string, msg: string) {
    super(msg);
    this.name = 'HttpError';
  }
}
Installs
1
GitHub Stars
1
First Seen
Sep 19, 2026