UNPKG

fb-test-module

Version:

How to use: ``` import {store, getStore} from 'fb-test-module'; conf.DialogramApi = "API_BASE_URL"; conf.Platform = "mobile"; //use "web" if you are on webApp getStore(); //Inject store in your provider ``` and you'r readyt to go. # Base ## Act

13 lines 371 B
import { store } from '../index'; export default class VideoHelper { static getVideoList() { const state = store.getState()['videos']; if (!state) { throw new Error('State initialization error'); } if (!state.get('videos')) { return null; } return state.get('videos').toJS(); } }