{"id":20974231,"url":"https://github.com/thirdweb-example/react-native-nft-drop","last_synced_at":"2025-05-14T12:31:12.849Z","repository":{"id":232903128,"uuid":"619419994","full_name":"thirdweb-example/react-native-nft-drop","owner":"thirdweb-example","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-12T00:24:36.000Z","size":177,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T18:22:55.277Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thirdweb-example.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}},"created_at":"2023-03-27T05:28:57.000Z","updated_at":"2023-03-30T23:32:55.000Z","dependencies_parsed_at":"2024-04-12T07:21:43.349Z","dependency_job_id":null,"html_url":"https://github.com/thirdweb-example/react-native-nft-drop","commit_stats":null,"previous_names":["thirdweb-example/react-native-nft-drop"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirdweb-example%2Freact-native-nft-drop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirdweb-example%2Freact-native-nft-drop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirdweb-example%2Freact-native-nft-drop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirdweb-example%2Freact-native-nft-drop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thirdweb-example","download_url":"https://codeload.github.com/thirdweb-example/react-native-nft-drop/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254142255,"owners_count":22021489,"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-19T04:27:20.338Z","updated_at":"2025-05-14T12:31:12.162Z","avatar_url":"https://github.com/thirdweb-example.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!Important]  \n\u003e This repository is referencing the `mumbai` chain.\n\u003e \n\u003e `Mumbai` [is deprecated since 08/04/2024](https://blog.thirdweb.com/deprecation-of-mumbai-testnet/), meaning the code in this repository will no longer work out of the box.\n\u003e\n\u003e You can still use this repository, however you will have to switch any references to `mumbai` to another chain.\n\n# Getting started with React Native and thirdweb\n\nThis repository is associated with a [guide on thirdweb blog](https://blog.thirdweb.com/getting-started-with-react-native-and-thirdweb).\n\n## Walkthrough\n\nIn `App.tsx` we have set up our `ThirdwebProvider` component to use Polygon Mumbai network. If you wish to change the network, this is the right place:\n\n```tsx\nconst App = () =\u003e {\n  return (\n    \u003cThirdwebProvider\n      activeChain=\"mumbai\"\n      supportedWallets={[metamaskWallet(), coinbaseWallet()]}\u003e\n      \u003cAppInner /\u003e\n    \u003c/ThirdwebProvider\u003e\n  );\n};\n```\n\nYou can also update the wallets you wish to use with your React Native app (currently `metamaskWallet()`, `coinbaseWallet()`, `rainbowWallet()` and `trustWallet()` are supported).\n\nThe main logic lies in the `Drop.tsx` where we use `Web3Button` to claim the Edition drop:\n\n```tsx\n\u003cWeb3Button\n  contractAddress=\"0xf92F6351022CA458EA5d0FA8854A014B50aE6264\"\n  onSuccess={() =\u003e {\n    Alert.alert('claimed!');\n  }}\n  action={contract =\u003e contract.erc1155.claim(0, 1)}\u003e\n  Claim\n\u003c/Web3Button\u003e\n```\n\n## Running the app\n\nYou need to first set up React Native for your machine. You can follow the [official guide](https://reactnative.dev/docs/environment-setup). We recommend using a physical device because simulators/emulators do not support wallets properly.\n\nRun the following command to run the app:\n\n```bash\n# android\nyarn android\n\n# ios\nyarn ios\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthirdweb-example%2Freact-native-nft-drop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthirdweb-example%2Freact-native-nft-drop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthirdweb-example%2Freact-native-nft-drop/lists"}