geo-ally-sdk
v0.0.3
Published
GEO all in one SDK
Downloads
9
Readme
geo-ally-sdk
React Native SDK
Install instructions.
Source code for geo-ally is contained in src, It uses the library code from geoally-client, geoally-core, geoally-webrtc.
Download the source and install as
"geo-ally-sdk": "git+https://github.com/frllabs/geo-ally-sdk#master"
Usage
import React from 'react';
import { useSelector } from 'react-redux';
import { useRoute } from '@react-navigation/native';
import { VideoView } from 'geo-ally-sdk';
import env from '../Config/env/index';
function LiveVideo() {
const routeProps = useRoute();
const user = useSelector((state) => state.userReducer.user);
// set data in navigator and get form useRoute. only for this devliery to videoview use case.
const { roomName } = routeProps.params;
return (
<VideoView
roomURL={`${env.CONF_API_URL}/token/joinRoom`}
wsURL={`${env.CHAT_BASE_URL}/medialive/`}
roomData={{
roomName,
userName: user.name,
level: 'participant',
}}
/>
);
}
export default LiveVideo;