Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error loading page Domain :undefined Error Code:-1 Description:net::ERR_FILE_NOT_FOUND #65

Closed
112200369 opened this issue Apr 2, 2020 · 2 comments

Comments

@112200369
Copy link

After the introduction of highcharts component according to the official package introduction of highcharts react native, I did not display the expected chart report in my project, Seek help mogul!

Error loading page Domain :undefined Error Code:-1 Description:net::ERR_FILE_NOT_FOUND

@sebastianbochan
Copy link
Contributor

Closing as duplicate of #51

@sanjeetCoder
Copy link

sanjeetCoder commented Oct 19, 2020

If you are trying to run reactJs into react native webview then run the below command for reactJs
---npm run build
---npm install serve
---npx serve -s build
ReactJs Code

import React from 'react';
import './App.css'
const App = () => {
return (


Hello World



)
};
export default App

It will show something
Serving! │
│ │
│ - Local: http://localhost:5000
│ - On Your Network: http://192.168.2.3:5000
│ │
│ Copied local address to clipboard! │

Use http://localhost:5000 into the browser
http://192.168.2.3:5000 in React Native -webview

React Native Code

import React from "react";
import { WebView } from "react-native-webview";

const App= () => {
return (
<WebView
originWhitelist={['*']}
source={{ uri:" http://192.168.2.3:5000"}}
javaScriptEnabled={true}
domStorageEnabled={true}
useWebKit={true}
startInLoadingState={true}
/>

);
};
export default App;
For react-native use only npm start in another terminal in project directory

-------------Hope It will help -----------------

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants