Files
jitsi-meet/react/features/mobile/react-native-sdk/functions.js
Filip Rejmus 935a391525 feat(rnsdk) add initial React Native SDK
Co-authored-by: Calin-Teodor <calin.chitu@8x8.com>
Co-authored-by: Saúl Ibarra Corretgé <saghul@jitsi.org>
2023-06-08 15:22:11 +02:00

14 lines
309 B
JavaScript

import { NativeModules } from 'react-native';
/**
* Determimes if the ExternalAPI native module is available.
*
* @returns {boolean} If yes {@code true} otherwise {@code false}.
*/
export function isExternalAPIAvailable() {
const { ExternalAPI } = NativeModules;
return ExternalAPI !== null;
}