{"library":"react-native-static-server","type":"library","category":null,"description":"react-native-static-server provides a cross-platform HTTP static file server component for React Native applications, enabling them to serve local assets over HTTP. The current stable version is 0.5.0, released in March 2024, indicating a moderate release cadence. It leverages native web server implementations (GCDWebServer for iOS and NanoHttpd for Android) to offer robust performance. Key differentiators include its seamless integration with `react-native-fs` for managing file paths, options for serving from the document directory or the app's main bundle, and configurations for local-only access and maintaining server activity while the app is in the background via a `keepAlive` option. It's designed to simplify serving packaged web content or dynamically created local files within a React Native environment.","language":"javascript","status":"active","version":"0.5.0","tags":["javascript","react-native","typescript"],"install":[{"cmd":"npm install react-native-static-server","imports":["import StaticServer from 'react-native-static-server';","import RNFS from 'react-native-fs';","new StaticServer({ localOnly: true, keepAlive: true });"]},{"cmd":"yarn add react-native-static-server","imports":[]},{"cmd":"pnpm add react-native-static-server","imports":[]}],"homepage":null,"github":"https://github.com/futurepress/react-native-static-server","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/react-native-static-server","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/react-native-static-server/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}