Skip to content

YipitBeijing/react-native-edison-calendar-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-edison-webview

Secondary development of this package


if you want change the index.html(webview content):

1. install the dependencies

yarn

2. run react app

  • 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

3. change webview uri

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

4. finish change and build

yarn build

5. publish

npm publish


if you want change the index.js or index.d.ts(webview shell):

1. copy the index.tsx to node_modules in you project

cp ./index.tsx {your project}/node_modules/react-native-edison-webview/

2. change the main in package.json

change the main in node_modules/react-native-edison-webview/package.json to "index.tsx" and delete "types": "index.d.ts"

3. finish change and build

copy index.tsx change code to react-native-edison-webview,

yarn build

4. publish

npm publish

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published