@desklink/react-native 0.1.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +198 -17
- package/android/src/main/java/expo/modules/desklink/DesklinkModule.kt +4 -0
- package/android/src/main/java/expo/modules/desklink/DesktopView.kt +61 -3
- package/app.plugin.js +16 -0
- package/expo-module.config.json +4 -1
- package/ios/DesklinkInput.podspec +22 -0
- package/ios/DesklinkInputModule.swift +20 -0
- package/ios/DesklinkInputView.swift +209 -0
- package/package.json +11 -2
- package/src/DesktopView.ios.spec.tsx +354 -0
- package/src/DesktopView.ios.tsx +244 -27
- package/src/DesktopView.tsx +9 -2
- package/src/DesktopView.web.tsx +14 -2
- package/src/hardwareKeys.ts +61 -0
- package/src/native.ios.ts +53 -5
- package/src/native.web.ts +86 -5
- package/src/protocol.ts +34 -7
- package/src/useDesktopSession.ts +496 -63
- package/src/webrtc.ios.ts +10 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The app's `react-native-webrtc`, evaluated on the first call rather than
|
|
3
|
+
* with the package: importing the package must not pull the native WebRTC
|
|
4
|
+
* libraries into the application's first paint. Metro bundles an inline
|
|
5
|
+
* `require` and runs it only when reached; a require by a name built at
|
|
6
|
+
* runtime would not be bundled at all.
|
|
7
|
+
*/
|
|
8
|
+
export function requireWebRTC(): unknown {
|
|
9
|
+
return require('react-native-webrtc');
|
|
10
|
+
}
|