{"id":14968477,"url":"https://github.com/rkmonarch/blinks-mobile-sdk","last_synced_at":"2025-10-26T02:31:14.479Z","repository":{"id":249813906,"uuid":"824703326","full_name":"rkmonarch/blinks-mobile-sdk","owner":"rkmonarch","description":"React Native SDK for Solana Blinks! Seamlessly integrate and render Solana blinks in your app with minimal setup. Effortless real-time display and customisation at your fingertips.","archived":false,"fork":false,"pushed_at":"2024-07-23T12:05:56.000Z","size":1533,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-31T13:43:28.479Z","etag":null,"topics":["react-native","sdk","solana","solana-blinks"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/blinks-mobile-sdk","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/rkmonarch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-07-05T18:21:52.000Z","updated_at":"2024-10-11T07:57:09.000Z","dependencies_parsed_at":"2024-07-23T14:26:39.130Z","dependency_job_id":"e843f7a5-36ff-4adf-8d03-6fc36dc79998","html_url":"https://github.com/rkmonarch/blinks-mobile-sdk","commit_stats":null,"previous_names":["rkmonarch/blinks-mobile-sdk"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkmonarch%2Fblinks-mobile-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkmonarch%2Fblinks-mobile-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkmonarch%2Fblinks-mobile-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkmonarch%2Fblinks-mobile-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rkmonarch","download_url":"https://codeload.github.com/rkmonarch/blinks-mobile-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238247978,"owners_count":19440879,"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":["react-native","sdk","solana","solana-blinks"],"created_at":"2024-09-24T13:39:59.515Z","updated_at":"2025-10-26T02:31:08.979Z","avatar_url":"https://github.com/rkmonarch.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blinks Mobile SDK Integration\n\nThis project demonstrates how to use the `blinks-mobile-sdk` to render blinks in a React Native application. The code includes setting up a query client using `@tanstack/react-query` and using the `RenderBlink` component from the SDK to display blink information and handle transactions.\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Setup](#setup)\n- [Usage](#usage)\n- [Customization](#customization)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Installation\n\nFirst, ensure you have `react-native` and `@tanstack/react-query` installed in your project. Then, install the `blinks-mobile-sdk`.\n\n```bash\npnpm i react-native @tanstack/react-query blinks-mobile-sdk\n\n```\n\n## Setup\n\nIn your project, you need to set up the `QueryClient` for `@tanstack/react-query` and configure the RenderBlink component provided by the `blinks-mobile-sdk`.\n\n# Create a component to render the blink:\n\n```tsx\nimport { SafeAreaView, StyleSheet } from 'react-native';\nimport {\n  Blink,\n  type BlinkStyles,\n  type TransactionData,\n} from 'blinks-mobile-sdk';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\n\nexport default function App() {\n  const queryClient = new QueryClient();\n  const url = 'https://actions.dialect.to/api/jupiter/swap/SOL-SEND';\n  const account = '4S7jxkoaCN8BsQi2cxscP38xEs1yZn12ooMfV94LLJPC';\n\n  const onTransaction = (result: TransactionData) =\u003e {\n    console.log(result);\n  };\n\n  return (\n    \u003cQueryClientProvider client={queryClient}\u003e\n      \u003cSafeAreaView style={styles.container}\u003e\n        \u003cBlink\n          url={url}\n          account={account}\n          onTransaction={onTransaction}\n          styles={blink}\n        /\u003e\n      \u003c/SafeAreaView\u003e\n    \u003c/QueryClientProvider\u003e\n  );\n}\n\nconst blink: BlinkStyles = {\n  container: {\n    flex: 1,\n    padding: 16,\n  },\n  button: {\n    backgroundColor: 'red',\n    borderRadius: 10,\n    paddingHorizontal: 2,\n  },\n  title: {\n    fontSize: 16,\n  },\n  description: {\n    fontWeight: '400',\n  },\n  input: {\n    fontSize: 14,\n  },\n  buttonText: {\n    fontSize: 13,\n  },\n};\n\nconst styles = StyleSheet.create({\n  container: {\n    flex: 1,\n  },\n});\n```\n\n## Usage\n\nTo use the `RenderBlink` component, you need to provide the following props:\n\n- `url`: The URL of the blink to render.\n\n- `account`: The account to use for the blink.\n\n- `onTransaction`: A callback function that is called when a transaction is completed.\n\n- `styles`: An object containing styles for the blink components.\n\n## Customization\n\nYou can customize the appearance of the blink components by providing a `BlinkStyles` object to the `styles` prop of the `RenderBlink` component. The `BlinkStyles` object contains the following properties:\n\n- `button`: Styles for the button component.\n\n- `title`: Styles for the title component.\n\n- `description`: Styles for the description component.\n\n- `input`: Styles for the input component.\n\n## Contributing\n\nContributions are welcome! Please read our [contributing guidelines](CONTRIBUTING.md) for more information.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frkmonarch%2Fblinks-mobile-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frkmonarch%2Fblinks-mobile-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frkmonarch%2Fblinks-mobile-sdk/lists"}