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

functions.ts 866B

123456789101112131415161718192021222324252627
  1. import debounce from 'lodash/debounce';
  2. import { NativeModules } from 'react-native';
  3. import { readyToClose } from './actions';
  4. /**
  5. * Sends a specific event to the native counterpart of the External API. Native
  6. * apps may listen to such events via the mechanisms provided by the (native)
  7. * mobile Jitsi Meet SDK.
  8. *
  9. * @param {Object} store - The redux store.
  10. * @param {string} name - The name of the event to send.
  11. * @param {Object} data - The details/specifics of the event to send determined
  12. * by/associated with the specified {@code name}.
  13. * @returns {void}
  14. */
  15. export function sendEvent(store: Object, name: string, data: Object) {
  16. NativeModules.ExternalAPI.sendEvent(name, data);
  17. }
  18. /**
  19. * Debounced sending of `readyToClose`.
  20. */
  21. export const _sendReadyToClose = debounce(dispatch => {
  22. dispatch(readyToClose());
  23. }, 2500, { leading: true });