UNPKG

react-singleton-hook

Version:
16 lines (14 loc) 540 B
"use strict"; exports.__esModule = true; exports.mount = exports.batch = void 0; var _reactNative = require("react-native"); var _warning = require("./warning"); /* eslint-disable import/no-unresolved */ var batch = function batch(cb) { return (0, _reactNative.unstable_batchedUpdates)(cb); }; exports.batch = batch; var mount = function mount(C) { (0, _warning.warning)('Can not mount SingletonHooksContainer with react native.' + 'Please mount SingletonHooksContainer into your components tree manually.'); }; exports.mount = mount;