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.

wv0.native.js 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. import { WebView } from 'react-native-webview';
  2. import React, { PureComponent } from 'react';
  3. import {
  4. Animated,
  5. Keyboard,
  6. SafeAreaView,
  7. TextInput,
  8. TouchableHighlight,
  9. TouchableOpacity,
  10. View
  11. } from 'react-native';
  12. import { Header, LoadingIndicator, Text } from '../react/features/base/react';
  13. type Props = {}
  14. class Wview_v1 extends PureComponent<Props> {
  15. constructor(props) {
  16. super(props);
  17. this.v1="a"
  18. clog("Wview_v1 init")
  19. }
  20. componentDidMount() {
  21. setInterval(() => {
  22. this.setState(() => {
  23. // console.log('setting state');
  24. var wv0_dev = window.glob_vhook.fns.glob_dev_fncb ? window.glob_vhook.fns.glob_dev_fncb("wv0_dev",{that:this},{}) : {}
  25. // return { unseen: "does not display" }
  26. return { unseen: wv0_dev.ret }
  27. });
  28. }, 1000);
  29. }
  30. render() {
  31. var wb_url
  32. clog("Wview_v1 render")
  33. // console.log("wview_v1 render.")
  34. if (glob_vhook?.fns?.gen_xcal_room3) {
  35. wb_url = glob_vhook.fns.gen_xcal_room3().room_url
  36. } else {
  37. // wb_url = "https://excalidraw.videocorners.com/#room=4zmaf7d5jtcx4pqgruba,4zmaf7BMXbI6tCEiW7rbgy"
  38. wb_url = "https://excalidraw.videocorners.com/#room=4zxcald5jtcx4pqgruba,4zxcalBMXbI6tCEiW7rbgy"
  39. }
  40. var webview_style = window.glob_vhook.fns.glob_dev_fncb ? window.glob_vhook.fns.glob_dev_fncb("webview_style",{that:this},{}) : {}
  41. var wv0_styles = window.glob_vhook.fns.glob_dev_fncb ? window.glob_vhook.fns.glob_dev_fncb("wv0_styles",{that:this},{}) : {}
  42. // <View
  43. // style = {wv0_styles.v1 || {}}
  44. // >
  45. var wv0_styles_dev = this.wv0_styles_dev || {}
  46. // <View style = { wv0_styles.v1 || {} }>
  47. // style = {webview_style}
  48. // <WebView source = {{uri:"https://excalidraw.videocorners.com/#room=4zxcald5jtcx4pqgruba,4zxcalBMXbI6tCEiW7rbgy"}}
  49. // <WebView source = {{uri:"wb_url"}}
  50. return (
  51. <View style = { wv0_styles_dev.v1 || {} }>
  52. <WebView source = {{uri:"https://excalidraw.videocorners.com/#room=4zxcald5jtcx4pqgruba,4zxcalBMXbI6tCEiW7rbgy"}}
  53. style = {wv0_styles_dev.webview_style || {}}
  54. ></WebView>
  55. </View>
  56. )
  57. }
  58. }
  59. export {Wview_v1}