Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

subscriber.native.ts 657B

1234567891011121314151617181920
  1. import { GiphySDK } from '@giphy/react-native-sdk';
  2. import StateListenerRegistry from '../base/redux/StateListenerRegistry';
  3. import { 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 => state['features/base/config']?.giphy,
  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. });