You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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. });