您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

wv0.native.js 2.6KB

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