{"id":21247194,"url":"https://github.com/alchemyplatform/aa-sdk-rn-expo","last_synced_at":"2025-04-14T03:07:31.805Z","repository":{"id":238039904,"uuid":"795742846","full_name":"alchemyplatform/aa-sdk-rn-expo","owner":"alchemyplatform","description":"Example repo using aa-sdk with react native and expo","archived":false,"fork":false,"pushed_at":"2024-10-13T02:52:07.000Z","size":790,"stargazers_count":2,"open_issues_count":4,"forks_count":2,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-14T03:07:25.281Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alchemyplatform.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-05-04T00:00:58.000Z","updated_at":"2024-09-27T11:44:19.000Z","dependencies_parsed_at":"2024-05-04T01:24:00.184Z","dependency_job_id":"10913098-a997-41e5-9c35-12b223a29b72","html_url":"https://github.com/alchemyplatform/aa-sdk-rn-expo","commit_stats":null,"previous_names":["alchemyplatform/aa-sdk-rn-expo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alchemyplatform%2Faa-sdk-rn-expo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alchemyplatform%2Faa-sdk-rn-expo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alchemyplatform%2Faa-sdk-rn-expo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alchemyplatform%2Faa-sdk-rn-expo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alchemyplatform","download_url":"https://codeload.github.com/alchemyplatform/aa-sdk-rn-expo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248813795,"owners_count":21165633,"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":"2024-11-21T02:17:02.039Z","updated_at":"2025-04-14T03:07:31.786Z","avatar_url":"https://github.com/alchemyplatform.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Account Kit RN Example using Expo\n\nThis is a sample repo that used expo to get started and integrates with Account Kit\n\n\u003cimg width=\"434\" alt=\"image\" src=\"https://github.com/alchemyplatform/aa-sdk-rn-expo/assets/4642570/e0dab7bc-f980-46eb-966c-13be7e79bc15\"\u003e\n\n## How it was made\n\n1. First create a new expo project (we used `yarn`):\n\n```bash\nyarn create expo-app --template\n```\n\nThis project used a `Blank (typescript)` template.\n\n2. Upgrade to the latest beta version of expo. This is needed because react native 0.74+ includes native support for `TextEncoder`\n\n```bash\nyarn expo install expo@next --fix\n```\n\n3. Install shims for crypto libraries\n\n```bash\nyarn expo install node-libs-react-native crypto-browserify stream-browserify react-native-get-random-values\n```\n\n4. Add shims to `metro.config.js`:\n\n```javascript\n// Learn more https://docs.expo.io/guides/customizing-metro\nconst { getDefaultConfig } = require(\"expo/metro-config\");\n\n/** @type {import('expo/metro-config').MetroConfig} */\nconst config = getDefaultConfig(__dirname);\nconfig.resolver.extraNodeModules = {\n  ...config.resolver.extraNodeModules,\n  ...require(\"node-libs-react-native\"),\n  crypto: require.resolve(\"crypto-browserify\"),\n  stream: require.resolve(\"stream-browserify\"),\n};\n\nmodule.exports = config;\n```\n\n5. Import global shims in `App.tsx`:\n\n```typescript\nimport \"node-libs-react-native/globals.js\";\nimport \"react-native-get-random-values\";\n\n// rest of App.tsx\n```\n\n6. Install [Account Kit](https://accountkit.alchemy.com) Packages. At this point you're ready to use the aa-sdk in your project.\n\n```bash\nyarn add viem@2.8.6 @alchemy/aa-alchemy @alchemy/aa-core @alchemy/aa-accounts\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falchemyplatform%2Faa-sdk-rn-expo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falchemyplatform%2Faa-sdk-rn-expo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falchemyplatform%2Faa-sdk-rn-expo/lists"}