2024-09-11 22:05:53 -04:00
2024-09-11 22:03:27 -04:00
2024-09-11 22:03:27 -04:00
2024-09-11 22:03:27 -04:00
2024-09-11 22:03:27 -04:00
2024-09-11 22:03:27 -04:00
2024-09-11 22:03:27 -04:00
2024-09-11 22:03:27 -04:00
2024-09-11 22:03:27 -04:00
2024-09-11 22:03:27 -04:00
2024-09-11 22:03:27 -04:00
2024-09-11 22:03:27 -04:00
2024-09-11 22:03:27 -04:00
2024-09-11 22:03:27 -04:00
2024-09-11 22:03:27 -04:00
2024-09-11 22:03:27 -04:00
2024-09-11 22:03:27 -04:00
2024-09-11 22:03:27 -04:00
2024-09-11 22:03:27 -04:00
2024-09-11 22:03:27 -04:00
2024-09-11 22:03:27 -04:00

react-native-pubky

React Native implementation of pubky

Installation

npm install react-native-pubky

Usage

import { auth } from 'react-native-pubky';

const authRes = await auth("pubkyAuthUrl", "secretKey");
if (authRes.isErr()) {
  console.log(authRes.error.message);
  return;
}
console.log(authRes.value);

Update Bindings

After making changes to any of the Rust files, the bindings will need to be updated. To do this, run the following command:

npm run update-bindings

Finally, ensure that PubkyModule.kt, Pubky.swift, Pubky.mm & src/index.tsx are updated accordingly based on the changes made to the Rust files.

License

MIT


Resources

Description
No description provided
Readme MIT 451 MiB
Languages
Kotlin 38.3%
Swift 23%
C 12.7%
TypeScript 10.7%
JavaScript 9.5%
Other 5.8%