Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

beedeez/react-native-static-server

Repository files navigation

React Native Static Server

This is a fork of https://www.npmjs.com/package/@dr.pogodin/react-native-static-server/v/0.5.5 That's the original package that we were using in Beedeez-Main prior to the migration to React Native 0.74

What I did:

  • Modernized the codebase to be compatible with the latest version of React Native
  • Migrated from Objective-C to Swift
  • Migrated from Java to Kotlin
  • Migrated from JS to TS

Installation

npm install react-native-static-server

Usage

import StaticServer from 'react-native-static-server';
const server = new StaticServer(8080, '/path/to/your/www', {
 localOnly: true,
 keepAlive: true,
});
server.start();

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

About

React Native Static Server

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

AltStyle によって変換されたページ (->オリジナル) /