Last active
December 10, 2020 18:39
-
-
Save EkaanshArora/a7d33c3c3576148aa9bbff3efce36ce1 to your computer and use it in GitHub Desktop.
This file contains 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, {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