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
17 lines (16 loc) • 480 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const index_1 = require("../index");
class VideoHelper {
static getVideoList() {
const state = index_1.store.getState()['videos'];
if (!state) {
throw new Error('State initialization error');
}
if (!state.get('videos')) {
return null;
}
return state.get('videos').toJS();
}
}
exports.default = VideoHelper;
;