alwx / react-native-http-bridge

HTTP server for React Native
118 stars 78 forks source link

IOS not running #30

Open EliaSemprebon opened 2 years ago

EliaSemprebon commented 2 years ago

The app is not running on ios while it was running correctly on Android. The ERROR is: null is not an object (evaluating 'Server.start').

Could you get any solution?

trollepierre commented 2 years ago

I get the same error, saying.

Apparently, NativeModules is equal to {}

in httpServer.js, I saw:

import {NativeModules} from 'react-native';

var Server = NativeModules.HttpServer;

      Server.start(port, serviceName);