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.5KB

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