vega-frontend-monorepo/apps/trading/hooks/react-singleton-hook/utils/env.native.js
2022-03-24 14:22:46 +01:00

10 lines
375 B
JavaScript

/* eslint-disable import/no-unresolved */
import { unstable_batchedUpdates } from 'react-native';
import { warning } from './warning';
export const batch = cb => unstable_batchedUpdates(cb);
export const mount = C => {
warning('Can not mount SingletonHooksContainer with react native.'
+ 'Please mount SingletonHooksContainer into your components tree manually.');
};