Install
$ agentstack add skill-cmaranho-rn-agent-skills-rn-api-integration ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ● Network access Used
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
React Native — Integração com APIs
Objetivo
Consumir APIs de forma tipada e resiliente, isolando IO da regra de negócio.
Quando utilizar
- Adicionar chamada a um endpoint.
- Tratar status codes, erros de rede e offline.
- Modelar DTOs, mappers e repositórios.
Conhecimentos necessários
- Cliente HTTP (ex.: fetch/Axios) e interceptors (auth, retry).
- Mapeamento de status code → erro de domínio tipado.
- Padrão Repository e resultado tipado (sucesso/erro).
- Cache/estado de servidor (ex.: React Query) quando aplicável.
Fluxo de execução
- Defina DTOs de request/response e o model de domínio.
- Implemente a chamada no repositório; mapeie cada status code relevante.
- Retorne resultado tipado (
{ ok, data } | { ok: false, error }ouEither); não lance exceção crua. - Normalize DTO → model com mapper puro.
- Consuma via caso de uso; trate loading/erro/sucesso no estado.
Boas práticas
- Auth/refresh e headers comuns em interceptor central.
- Timeout, cancelamento (AbortController) e retry idempotente.
- Erros de domínio tipados carregam contexto.
- Nunca vaze a resposta crua do cliente para a UI.
Armadilhas comuns
- Chamada de API direto no componente/hook de tela.
- Tratar só o caminho feliz; ignorar 4xx/5xx/offline.
anyem respostas; ausência de validação de payload.- Segredos no cliente ou em log.
Critérios de sucesso
- Toda resposta e erro mapeados e tipados.
- Falhas de rede tratadas com estado de erro e recuperação.
- Camada de dados testada (sucesso e erro).
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: cmaranho
- Source: cmaranho/rn-agent-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.