Create Apps Using React Native
React Native is an open-source JavaScript framework, designed for building apps on multiple platforms like iOS, Android, and also web applications, utilizing the very same code base. WebRTC in React Native is supported by desktop web browsers, Android WebViews, and iOS 15+ WebViews.
Currently, LiveSwitch doesn't have a React Native bridge for iOS and Android. However, LiveSwitch has been successful in many use cases by using WebViews. If you want to enable streaming out from the device, you must request camera and microphone permission before using the WebView. For receiving only, you don’t have to make any changes to your existing application. For more information on requesting microphone and camera access, refer to the documentation on react-native-permissions.
Example code:
/**
* Sample React Native App
*
* @format
* @flow strict-local
*/
import React, { Component } from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { WebView } from 'react-native-webview';
const App = () => {
return (<WebView source={{ uri: 'https://your.website.dev/conference' }} />);
}
export default App;