t4t5 / nostr-react

React Hooks for Nostr 🦤
MIT License
86 stars 14 forks source link

Latest Version is broken on react native #29

Open ivan-jorge001 opened 7 months ago

ivan-jorge001 commented 7 months ago

This break react native because it does have a window object defined but doesnt have that method, can we use import { encode as btoa } from 'base-64'; https://github.com/t4t5/nostr-react/blob/aa230629bd97d66d27789833c6c710412729a7e9/src/core.tsx#L182

ivan-jorge001 commented 7 months ago

PR to fix it https://github.com/t4t5/nostr-react/pull/30