Skip to content

Instantly share code, notes, and snippets.

@EkaanshArora
Last active December 10, 2020 18:39
Show Gist options
  • Save EkaanshArora/a7d33c3c3576148aa9bbff3efce36ce1 to your computer and use it in GitHub Desktop.
Save EkaanshArora/a7d33c3c3576148aa9bbff3efce36ce1 to your computer and use it in GitHub Desktop.
import React, {Component} from 'react'
import {Platform, ScrollView, Text, TouchableOpacity, View} from 'react-native'
import RtcEngine, {RtcLocalView, RtcRemoteView, VideoRenderMode} from 'react-native-agora'
import requestCameraAndAudioPermission from './components/Permission'
import styles from './components/Style'
/**
* @property peerIds Array for storing connected peers
* @property appId
* @property channelName Channel Name for the current session
* @property joinSucceed State variable for storing success
*/
interface State {
appId: string,
token: string,
channelName: string,
joinSucceed: boolean,
peerIds: number[],
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment