forked from onsip/SIP.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
John Riordan
committed
Jun 11, 2020
1 parent
185d128
commit 53fd6db
Showing
5 changed files
with
30 additions
and
694 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# React Native | ||
|
||
|
||
### SimpleUser class | ||
|
||
The [SimpleUser](./simple-user.md) class will not work with React Native (it depends on the DOM). | ||
|
||
### API framework | ||
|
||
In order to use the [API](./api.md) framework in React Native (for building Android and iOS apps): | ||
|
||
- include the [react-native-webrtc](https://github.com/react-native-webrtc/react-native-webrtc) dependency into your React Native project | ||
- call the exposed [registerGlobals()](https://github.com/react-native-webrtc/react-native-webrtc#registerglobals) function before creating a new `UserAgent` instance | ||
|
||
By calling `registerGlobals()`, classes required by WebRTC such as `RTCPeerConnection` and `MediaStream` (among others) will be exposed in the global scope which is required by the default WebRTC [SessionDescriptionHandler](./session-description-handler). | ||
|
||
For example... | ||
``` | ||
import { registerGlobals } from 'react-native-webrtc'; | ||
import { UserAgent } from 'sip.js'; | ||
registerGlobals(); | ||
const ua = new UserAgent(/* configuration options here */); | ||
``` | ||
|
||
### Core library | ||
|
||
The [Core](./core.md) library works with React Native out of the box. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
See [documentation](../.././../docs/react-native.md). |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.