If multiple JitsiMeetView instances are created (not necessarily existing at once), it's possible to hit a TypeError when reading the React Component props of the currently mounted App. Anyway, in certain places we're already protecting against that out of abundance of caution so it makes no sense to not protect everywhere.
26 lines
502 B
JavaScript
26 lines
502 B
JavaScript
// @flow
|
|
|
|
import { NativeModules } from 'react-native';
|
|
|
|
export * from './functions.any';
|
|
export * from './getRouteToRender';
|
|
|
|
/**
|
|
* Returns application name.
|
|
*
|
|
* @returns {string} The application name.
|
|
*/
|
|
export function getName() {
|
|
return NativeModules.AppInfo.name;
|
|
}
|
|
|
|
/**
|
|
* Returns the path to the Jitsi Meet SDK bundle on iOS. On Android it will be
|
|
* undefined.
|
|
*
|
|
* @returns {string|undefined}
|
|
*/
|
|
export function getSdkBundlePath() {
|
|
return NativeModules.AppInfo.sdkBundlePath;
|
|
}
|