You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

wv1.native.js 1.0KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import { WebView } from 'react-native-webview';
  2. import React, { PureComponent } from 'react';
  3. type Props = {}
  4. class Wview_v1 extends PureComponent<Props> {
  5. constructor(props) {
  6. super(props);
  7. this.v1="a"
  8. clog("Wview_v1 init")
  9. }
  10. render() {
  11. var wb_url
  12. clog("Wview_v1 render")
  13. console.log("wview_v1 render.")
  14. if (glob_vhook?.fns?.gen_xcal_room3) {
  15. wb_url = glob_vhook.fns.gen_xcal_room3().room_url
  16. } else {
  17. wb_url = "https://excalidraw.videocorners.com/#room=4zmaf7d5jtcx4pqgruba,4zmaf7BMXbI6tCEiW7rbgy"
  18. }
  19. // <WebView source = {{uri:"https://excalidraw.videocorners.com/#room=4zmaf7d5jtcx4pqgruba,4zmaf7BMXbI6tCEiW7rbgy"}}
  20. var webview_style = window.glob_vhook.fns.glob_dev_fncb ? window.glob_vhook.fns.glob_dev_fncb("webview_style",{that:this},{}) : {}
  21. return {
  22. <WebView source = {{uri:wb_url}}
  23. style = {webview_style}
  24. ></WebView>
  25. }
  26. }
  27. }
  28. export {Wview_v1}