UNPKG

cloudkitty

Version:
28 lines (20 loc) 460 B
# CloudKitty Hook and Context Provider that make it easy to interact with Apple CloudKit. ### Provider ```tsx import CloudKittyProvider from "cloudkitty"; // ... <CloudKittyProvider token={"<Your CloudKit Token>"} environment="development" containerIdentifier="Your Container Name" > <App /> </CloudKittyProvider> ``` ### Hook ```ts import { useCloudKitty } from "cloudkitty"; // ... const { loading, error, container, user } = useCloudKitty(); ```