signalwire-community / react-native-room-preview

Room Preview component for React Native

Home Page:https://signalwire-community.github.io/docs/react-native/components/roompreview/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@signalwire-community/react-native-room-preview

@signalwire-community/react-native-room-preview

React Native component for displaying SignalWire Room Previews.

⚠️ Disclaimer:

The libraries in this repository are NOT supported by SignalWire.

Installation

npm install @signalwire-community/react-native-room-preview react-native-webview

Usage

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>
  );
}

About

Room Preview component for React Native

https://signalwire-community.github.io/docs/react-native/components/roompreview/

License:MIT License


Languages

Language:TypeScript 64.4%Language:JavaScript 35.6%