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
npm install react-native-static-server
import StaticServer from 'react-native-static-server';
const server = new StaticServer(8080, '/path/to/your/www', {
localOnly: true,
keepAlive: true,
});
server.start();
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library