Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

subscriber.native.js 630B

1234567891011121314151617181920
  1. import { GiphySDK } from '@giphy/react-native-sdk';
  2. import { StateListenerRegistry } from '../base/redux';
  3. import { isGifEnabled } from './functions';
  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. });