react-native-unistyles
Version:
Level up your React Native StyleSheet
13 lines (12 loc) • 421 B
JavaScript
;
import * as unistyles from '../web/services';
import { error, isServer } from '../web/utils';
export const resetServerUnistyles = () => {
if (!isServer()) {
throw error('Server styles should only be reset on the server');
}
unistyles.services.registry.reset();
unistyles.services.shadowRegistry.reset();
unistyles.services.listener.reset();
};
//# sourceMappingURL=resetServerUnistyles.js.map