@kirz/react-native-toolkit
Version:
Toolkit to speed up React Native development
16 lines (15 loc) • 568 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.useRemoteConfig = useRemoteConfig;
var _react = require("react");
var _PluginsBundleContext = require("../contexts/PluginsBundleContext");
function useRemoteConfig() {
const {
bundle
} = (0, _react.useContext)(_PluginsBundleContext.PluginsBundleContext);
const remoteConfigPlugins = bundle.plugins.filter(x => x.features.includes('RemoteConfig'));
return Object.assign({}, ...remoteConfigPlugins.map(x => x.remoteValues));
}
//# sourceMappingURL=useRemoteConfig.js.map