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

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