{"id":26233646,"url":"https://github.com/docknetwork/react-native-sdk","last_synced_at":"2025-04-22T12:11:12.845Z","repository":{"id":232743851,"uuid":"375829304","full_name":"docknetwork/react-native-sdk","owner":"docknetwork","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-15T13:45:46.000Z","size":29447,"stargazers_count":3,"open_issues_count":9,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-15T14:43:42.805Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/docknetwork.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-06-10T21:00:59.000Z","updated_at":"2025-04-09T14:08:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"db2fa0cc-9fd5-46c6-8f5c-fc8170f2066c","html_url":"https://github.com/docknetwork/react-native-sdk","commit_stats":{"total_commits":1135,"total_committers":8,"mean_commits":141.875,"dds":"0.17444933920704842","last_synced_commit":"a360ff362533138b8f9fb04ac36752e71a0ab1a4"},"previous_names":["docknetwork/react-native-sdk"],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docknetwork%2Freact-native-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docknetwork%2Freact-native-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docknetwork%2Freact-native-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docknetwork%2Freact-native-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/docknetwork","download_url":"https://codeload.github.com/docknetwork/react-native-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249094688,"owners_count":21211829,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-13T01:16:58.104Z","updated_at":"2025-04-22T12:11:12.824Z","avatar_url":"https://github.com/docknetwork.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Truvera Wallet SDK\n\nThe [Wallet SDK](https://github.com/docknetwork/react-native-sdk) enables you to build a Verifiable Credentials wallet inside your app and allows your users to receive, store, and manage their DOCK tokens too. This was built for mobile applications with added support for Polkadot-JS.\n\nTo use the wallet-sdk, all you need to do is wrap your app in a `WalletSDKProvider` and start building your wallet.\n\nUsing [polkadot-js](https://polkadot.js.org/) libraries in React Native is a challenge, due to the lack of WebAssembly support.\nThe Truvera Wallet SDK handles all the Polkadot Web Assembly in a WebView, sending messages to the React Native thread through a JSON RPC layer.\n\nTruvera Mobile SDK supports:\n- Devices that have Android 8.1 or higher and iOS 11 or higher.\n- Minimum supported version of Node.js is 20.2.0\n\n## Installation\n```js\nyarn add @docknetwork/wallet-sdk-core\nyarn add @docknetwork/wallet-sdk-react-native\n\n```\n**There are some scripts and additional dependencies required.**\nPlease check our [example repo](https://github.com/docknetwork/wallet-sdk-demo) for detailed steps. \n\n## React Native Example\nThe following example will create a wallet and allow the user to add credentials to it. Displaying the count of documents added to the wallet.\nNotice that the all documents are accessible through the `documents` object.\n\n```js\nimport {Box, Button, NativeBaseProvider, Text} from 'native-base';\nimport React, {useEffect} from 'react';\nimport {\n  WalletSDKProvider,\n  useWallet,\n} from '@docknetwork/wallet-sdk-react-native/lib';\n\nconst WalletDetails = function () {\n  const {wallet, status, documents} = useWallet();\n\n  return (\n    \u003cBox\u003e\n      \u003cText\u003eWallet status: {status}\u003c/Text\u003e\n      \u003cText\u003eWallet docs: {documents.length}\u003c/Text\u003e\n      \u003cButton onPress={() =\u003e wallet.addDocument({\n        name: 'my credential',\n        type: 'VerifiableCredential',\n      })}\u003e\n        \u003cText\u003eAdd Credential\u003c/Text\u003e\n      \u003c/Button\u003e\n    \u003c/Box\u003e\n  );\n};\n\nconst App = () =\u003e {\n  return (\n    \u003cNativeBaseProvider\u003e\n      \u003cWalletSDKProvider\u003e\n        \u003cBox p={8}\u003e\n          \u003cText\u003eDock Wallet SDK Demo\u003c/Text\u003e\n          \u003cText\u003ePress on `add credential` button to create a new credential\u003c/Text\u003e\n        \u003c/Box\u003e\n        \u003cWalletDetails /\u003e\n      \u003c/WalletSDKProvider\u003e\n    \u003c/NativeBaseProvider\u003e\n  );\n};\n\nexport default App;\n\n```\n\n## Running on other platforms\n\nCheck the following repository for detailed examples for running the Truvera Wallet SDK on NodeJS, Web, and Flutter.\n\n[See the examples](https://github.com/docknetwork/wallet-sdk-examples)\n\n\n## Docs\n\nFor more details you can check the [getting started guide](https://github.com/docknetwork/react-native-sdk/blob/master/docs/getting-started.md)\n\n[See the Github repository](https://docknetwork.github.io/react-native-sdk/)\n\n## Features\n- [Biometric Plugin](https://github.com/docknetwork/react-native-sdk/blob/master/docs/biometric-plugin.md)\n- [Ecosystem Tools](https://github.com/docknetwork/react-native-sdk/blob/master/docs/ecosystem-tools.md)\n- [Cloud Wallet](https://github.com/docknetwork/react-native-sdk/blob/master/docs/cloud-wallet.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocknetwork%2Freact-native-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdocknetwork%2Freact-native-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocknetwork%2Freact-native-sdk/lists"}