nitro-fetch

Replace React Native networking with Nitro Modules for SSL pinning and WebSocket support.

34|4|Updated Aug 9, 2024
One-click install
npx skills add https://github.com/huytdps13400/react-native-ssl-manager --skill nitro-fetch-huytdps13400
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nitro-fetch
Source: https://github.com/huytdps13400/react-native-ssl-manager/tree/main/.agents/skills/nitro-fetch
Command: npx skills add https://github.com/huytdps13400/react-native-ssl-manager --skill nitro-fetch-huytdps13400

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires react-native-ssl-manager, react-native-nitro-modules, react-native-nitro-websockets, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill unit enhances the performance and functionality of React Native applications by replacing the default networking stack with a Nitro Module-based solution, offering native performance and advanced features.

Core Features & Use Cases

  • Platform-native pinning: Utilizes TrustKit (iOS) and Network Security Config (Android) for robust SSL certificate pinning.
  • Single config for multiple platforms: Simplifies configuration management with a unified ssl_config.json file.
  • Runtime toggle: Dynamically enable or disable pinning without rebuilding the app.
  • Expo and RN CLI integration: Provides a seamless setup experience for Expo and React Native CLI projects.
  • Nitro Module: Uses Nitro's native code generation to improve performance and enable advanced features.

Quick Start

Initialize the Nitro Module by running: npm install react-native-ssl-manager react-native-nitro-modules, then set up your SSL configuration in ssl_config.json.

Frequently Asked Questions about nitro-fetch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up SSL certificate pinning in React Native?

To set up SSL certificate pinning in React Native, install react-native-ssl-manager and react-native-nitro-modules, then define your certificates in a unified ssl_config.json file. This replaces the default networking stack with Nitro Modules to provide native performance and robust security.

Can I dynamically toggle SSL pinning in React Native without rebuilding the app?

Yes, you can dynamically toggle SSL pinning in React Native at runtime without rebuilding the app. This Nitro Module-based solution provides a runtime toggle feature, allowing you to enable or disable pinning on the fly for easier debugging and testing.

Does this Nitro Module networking solution support Expo projects or only React Native CLI?

This Nitro Module networking solution supports both Expo and React Native CLI projects. It provides a seamless setup experience for managing SSL pinning and network request optimization across both platforms using a single configuration file.

What is the best way to improve React Native network request performance?

The best way to improve React Native network request performance is replacing the default networking stack with Nitro Modules. This approach uses native code generation to optimize requests, supports WebSocket pre-warming, and enhances SSL pinning execution natively.

What React Native version is required for Nitro Modules networking and SSL pinning?

Nitro Modules networking and SSL pinning require React Native 0.75 or higher. You also need to install additional packages like react-native-nitro-modules and optionally react-native-nitro-websockets to handle the native code generation and WebSocket support.