UNPKG

@nostr-dev-kit/ndk-mobile

Version:

NDK Mobile

15 lines (14 loc) 386 B
"use strict"; import { getInstalledSignerApps } from "expo-nip55"; import { useEffect, useState } from "react"; export function useNip55() { const [signerApps, setSignerApps] = useState([]); useEffect(() => { getInstalledSignerApps().then(setSignerApps); }, []); return { isAvailable: signerApps.length > 0, apps: signerApps }; } //# sourceMappingURL=nip55.js.map