2018-04-13 21:00:54 +00:00
|
|
|
// @flow
|
|
|
|
|
2017-10-13 20:34:27 +00:00
|
|
|
import { NativeModules } from 'react-native';
|
2017-08-22 17:28:31 +00:00
|
|
|
|
2018-05-10 04:45:24 +00:00
|
|
|
export * from './functions.any';
|
2017-10-13 20:34:27 +00:00
|
|
|
export * from './getRouteToRender';
|
2016-10-05 14:36:59 +00:00
|
|
|
|
|
|
|
/**
|
2017-10-13 20:34:27 +00:00
|
|
|
* Returns application name.
|
2016-10-05 14:36:59 +00:00
|
|
|
*
|
2017-10-13 20:34:27 +00:00
|
|
|
* @returns {string} The application name.
|
2016-10-05 14:36:59 +00:00
|
|
|
*/
|
2017-10-13 20:34:27 +00:00
|
|
|
export function getName() {
|
|
|
|
return NativeModules.AppInfo.name;
|
2016-10-05 14:36:59 +00:00
|
|
|
}
|
2018-04-05 19:12:24 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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;
|
|
|
|
}
|