Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

functions.native.js 976B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // @flow
  2. import { NativeModules } from 'react-native';
  3. import { toState } from '../base/redux';
  4. import { getServerURL } from '../base/settings';
  5. export * from './functions.any';
  6. /**
  7. * Retrieves the default URL for the app. This can either come from a prop to
  8. * the root App component or be configured in the settings.
  9. *
  10. * @param {Function|Object} stateful - The redux store or {@code getState}
  11. * function.
  12. * @returns {string} - Default URL for the app.
  13. */
  14. export function getDefaultURL(stateful: Function | Object) {
  15. const state = toState(stateful);
  16. return getServerURL(state);
  17. }
  18. /**
  19. * Returns application name.
  20. *
  21. * @returns {string} The application name.
  22. */
  23. export function getName() {
  24. return NativeModules.AppInfo.name;
  25. }
  26. /**
  27. * Returns the path to the Jitsi Meet SDK bundle on iOS. On Android it will be
  28. * undefined.
  29. *
  30. * @returns {string|undefined}
  31. */
  32. export function getSdkBundlePath() {
  33. return NativeModules.AppInfo.sdkBundlePath;
  34. }