@kirz/expo-content-blocker
Version:
Apply content blocker rules to Safari
9 lines • 383 B
JavaScript
import { requireNativeModule } from "expo-modules-core";
const ContentBlockerModule = requireNativeModule("ExpoContentBlocker");
export async function applyBlockerRules(rules) {
await ContentBlockerModule.applyRules(JSON.stringify(rules));
}
export async function getBlockerState() {
return await ContentBlockerModule.getState();
}
//# sourceMappingURL=content-blocker.js.map