yarn
-
yarn dev
to start react app in localhost - or
yarn dev-with-host
to start in host and can visit it in other device by IP address
change the code in file {your project}/node_modules/react-native-edison-webview/index.js
find this code:
this.setState({ webviewUri: messageBodyFilePath });
change the webviewUri to your local url: http://localhost:8080
or http://192.168.1.123:8080
yarn build
npm publish
cp ./index.tsx {your project}/node_modules/react-native-edison-webview/
change the main
in node_modules/react-native-edison-webview/package.json
to "index.tsx"
and delete "types": "index.d.ts"
copy index.tsx
change code to react-native-edison-webview,
yarn build
npm publish