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

subscriber.native.ts 654B

1234567891011121314151617181920
  1. import { GiphySDK } from '@giphy/react-native-sdk';
  2. import StateListenerRegistry from '../base/redux/StateListenerRegistry';
  3. import { getGifConfig, isGifEnabled } from './function.any';
  4. /**
  5. * Listens for changes in the number of participants to calculate the dimensions of the tile view grid and the tiles.
  6. */
  7. StateListenerRegistry.register(
  8. /* selector */ state => getGifConfig(state),
  9. /* listener */ (_, store) => {
  10. const state = store.getState();
  11. if (isGifEnabled(state)) {
  12. GiphySDK.configure({ apiKey: state['features/base/config'].giphy?.sdkKey ?? '' });
  13. }
  14. }, {
  15. deepEquals: true
  16. });