Skip to content

Instantly share code, notes, and snippets.

View svbala99's full-sized avatar
🏠
Working from home

Balamurugan svbala99

🏠
Working from home
View GitHub Profile
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();
@svbala99
svbala99 / MyWebView.js
Created July 4, 2023 19:15
React native screen
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
@svbala99
svbala99 / App.js
Created July 4, 2023 19:08
React side
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;
<!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">
<!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">
<!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">
@svbala99
svbala99 / leaders-in-js-array.markdown
Created December 3, 2019 12:30
leaders in JS array