React Native component for displaying SignalWire Room Previews.
⚠️ Disclaimer:The libraries in this repository are NOT supported by SignalWire.
npm install @signalwire-community/react-native-room-preview react-native-webview
Import and use the component, for example:
import React from 'react';
import { SafeAreaView } from 'react-native';
import { RoomPreview } from '@signalwire-community/react-native-room-preview';
export default function App() {
return (
<SafeAreaView>
<RoomPreview
previewUrl={{ uri: 'https://my-preview-url' }}
loadingUrl={{ uri: 'https://swrooms.com/swloading.gif' }}
style={{ width: '50%' }}
/>
</SafeAreaView>
);
}