{"id":29182803,"url":"https://github.com/magiclabs/react-native-demo","last_synced_at":"2025-09-06T11:33:57.644Z","repository":{"id":45762896,"uuid":"514432993","full_name":"magiclabs/react-native-demo","owner":"magiclabs","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-11T22:41:13.000Z","size":4632,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-06-11T22:41:37.851Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/magiclabs.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":"2022-07-15T23:49:16.000Z","updated_at":"2025-06-11T22:41:18.000Z","dependencies_parsed_at":"2024-01-31T23:31:39.311Z","dependency_job_id":"c0e499a9-bfb6-4116-bf4d-c53e77e0c94f","html_url":"https://github.com/magiclabs/react-native-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/magiclabs/react-native-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclabs%2Freact-native-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclabs%2Freact-native-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclabs%2Freact-native-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclabs%2Freact-native-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magiclabs","download_url":"https://codeload.github.com/magiclabs/react-native-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclabs%2Freact-native-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263033180,"owners_count":23403111,"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-07-01T20:32:53.733Z","updated_at":"2025-09-06T11:33:57.621Z","avatar_url":"https://github.com/magiclabs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## ✨ Magic React Native Demo Apps\n\nThis repository contains two mobile applications demonstrating Magic's React Native SDKs and extensions for both Bare React Native and Expo managed workflows.\n\n\n### 🔑 Setup and Installation\n\n1. **Get Magic API Keys**: Sign up or login to the [developer dashboard](https://dashboard.magic.link) to receive API keys.\n\n2. **Clone the Repository**:\n```shell\n# SSH\n$ git clone git@github.com:magiclabs/react-native-demo.git\n# HTTPS\n$ git clone https://github.com/magiclabs/react-native-demo.git\n```\n\n3. **Configure API Keys**: Update the Magic publishable API key in both projects:\n\n- Bare React Native Example: `MagicBareRnExample/hooks/magic.ts`\n- Expo Example: `MagicExpoRNExample/hooks/magic.ts`\n\nReplace `'YOUR_PUBLISHABLE_KEY'` with your actual Magic publishable API key.\n\n### 📱 Expo Tutorial (Managed Workflow)\n\nThe Expo example uses Expo Router for navigation and includes modern React Native features.\n\n```shell\n$ cd MagicExpoRNExample\n$ yarn install\n$ yarn start\n```\n\nWhen the bundler starts:\n- Press **i** to open iOS simulator\n- Press **a** to open Android emulator\n- Press **w** to open in web browser\n\n### 🔧 Bare React Native Tutorial (Standalone Workflow)\n\nThe Bare React Native example provides full native control and custom configurations.\n\n```shell\n$ cd MagicBareRNExample\n$ yarn install\n```\n\n#### iOS Setup\n```shell\n$ cd ios\n$ pod install\n$ cd ..\n$ yarn ios\n```\n\n#### Android Setup\n```shell\n$ yarn android\n```\n\n### 🚨 Troubleshooting\n\n#### Error code 65 (iOS Build Issues)\nIf you encounter `Error code 65` when running `yarn ios`:\n\n1. **Clean Build**: Follow [these steps](https://github.com/react-native-maps/react-native-maps/issues/2853#issuecomment-516760615) to clean your iOS build.\n\n2. **Update AppDelegate**: If updating React Native versions, manually update the `AppDelegate.mm` file in Xcode as [suggested here](https://github.com/facebook/react-native/issues/36293#issuecomment-1445377662).\n\n#### Pod Install Issues\nIf you encounter issues with `pod install`:\n```shell\n$ cd ios\n$ pod install\n```\n\n#### Metro Cache Issues\nClear Metro cache if you encounter bundling issues:\n```shell\n$ yarn start --reset-cache\n```\n\n### 📚 Additional Resources\n\n- [Magic Documentation](https://magic.link/docs)\n- [Magic Developer Dashboard](https://dashboard.magic.link)\n\n- [React Native Documentation](https://reactnative.dev/docs/getting-started)\n- [Expo Documentation](https://docs.expo.dev)\n\n\n\n### 📄 License\n\nThis project is licensed under the MIT License. \n\n\t","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclabs%2Freact-native-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagiclabs%2Freact-native-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclabs%2Freact-native-demo/lists"}