A Pen by BALAMURUGAN on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "./App.css"; | |
| import React from "react"; | |
| import { ZoomMtg } from "@zoomus/websdk"; | |
| ZoomMtg.setZoomJSLib("https://source.zoom.us/2.13.0/lib", "/av"); | |
| // ZoomMtg.setZoomJSLib("node_modules/@zoomus/websdk/dist/lib", "/av"); | |
| ZoomMtg.preLoadWasm(); | |
| ZoomMtg.prepareWebSDK(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { BackHandler, Dimensions, View } from 'react-native'; | |
| import React, { useEffect, useRef } from 'react'; | |
| import MyWebView from 'react-native-autoheight-webview'; | |
| const MyWebView = () => { | |
| const webViewRef = useRef(null); | |
| /** | |
| * @function handleMessage | |
| * @param {String} message | |
| * @description this is the message from React PWA. Handle it here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, {useEffect} from 'react'; | |
| const App = () => { | |
| // listener to receive msgs from react native | |
| useEffect(() => { | |
| const messageListener = window.addEventListener('message', (nativeEvent) => { | |
| conssole.log(nativeEvent?.data); | |
| }); | |
| return messageListener; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <script id="jsbin-javascript"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <script id="jsbin-javascript"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <script id="jsbin-javascript"> |