Skip to content

Exception in native call from js  #110

Description

@rishikeshwovvtech

Im getting following error not able to proceed further

Screenshot 2021-12-28 at 2 32 40 PM

Here is my code

  import React, { useRef, useState, useEffect } from 'react';
  import { View, Text } from 'react-native';
  import StaticServer from 'react-native-static-server';
  const serverConfig = { localOnly: true, keepAlive: true };
  const App = () => {
    useEffect(() => {
       let server = new StaticServer(8080);
      // Start the server
      server.start().then((url) => {
        console.log("Serving at URL", url);
      });
   }, []);

  return (
    <View style={{ flex: 1, backgroundColor: 'red' }}>
    </View>
  )
}
export default App;

package.json

"dependencies": { "react": "16.8.1", "react-native": "0.61.3", "react-native-static-server": "^0.5.0" },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions