{"id":15019727,"url":"https://github.com/gabriel-logan/expo-barcode","last_synced_at":"2026-02-27T04:30:54.991Z","repository":{"id":256021787,"uuid":"854144712","full_name":"gabriel-logan/expo-barcode","owner":"gabriel-logan","description":"Library to generate barcodes and qr codes natively using Kotlin and Swift, integrated with expo.","archived":false,"fork":false,"pushed_at":"2024-09-08T16:14:03.000Z","size":782,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-19T01:50:38.195Z","etag":null,"topics":["expo","expo-library","expo-modules","java","kotlin","library","npm","npm-library","react","react-native","react-native-library","swift"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/expo-barcode","language":"Kotlin","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/gabriel-logan.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}},"created_at":"2024-09-08T13:51:36.000Z","updated_at":"2025-09-10T20:30:46.000Z","dependencies_parsed_at":"2024-09-08T15:25:38.419Z","dependency_job_id":"de19dd78-0f8e-46aa-9f98-e091bee025d2","html_url":"https://github.com/gabriel-logan/expo-barcode","commit_stats":null,"previous_names":["gabriel-logan/expo-barcode"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gabriel-logan/expo-barcode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabriel-logan%2Fexpo-barcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabriel-logan%2Fexpo-barcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabriel-logan%2Fexpo-barcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabriel-logan%2Fexpo-barcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabriel-logan","download_url":"https://codeload.github.com/gabriel-logan/expo-barcode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabriel-logan%2Fexpo-barcode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29884677,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"online","status_checked_at":"2026-02-27T02:00:06.759Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["expo","expo-library","expo-modules","java","kotlin","library","npm","npm-library","react","react-native","react-native-library","swift"],"created_at":"2024-09-24T19:53:56.898Z","updated_at":"2026-02-27T04:30:54.976Z","avatar_url":"https://github.com/gabriel-logan.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# expo-barcode\n\n## UNDER DEVELOPMENT\n\nLibrary to generate barcodes and qr codes natively using Kotlin and Swift, integrated with expo.\n\n## Supported Frameworks\n\n- React Native - ❌ - [See RN Version](https://github.com/gabriel-logan/mobile-native-barcode-generator)\n- Expo - ✅\n\n## Supported Architectures\n\n- Android - ✅\n- Ios - ❌\n- Windows - ❌\n- Mac - ❌\n- Linux - ❌\n\n### Add the package to your npm dependencies\n\n```sh\nnpm install expo-barcode\n```\n\n```sh\nyarn add expo-barcode\n```\n\n### Configure for iOS\n\nRun `npx pod-install` after installing the npm package.\n\n\n### Configure for Android\n\n## Usage\n\n### Available methods\n\n```js\nimport {\n\tBarcodeView,\n\tQRCodeView,\n\tgenerateBarcode,\n\tgenerateQRCode,\n} from \"expo-barcode\";\n```\n\n### Using the components\n\n#### Simple example\n\n```js\nimport { QRCodeView } from \"expo-barcode\";\n\nexport default function App() {\n\treturn (\n\t\t\u003cView style={styles.container}\u003e\n\t\t\t\u003cQRCodeView value={\"Hello World!\"} width={250} height={250} /\u003e\n\t\t\u003c/View\u003e\n\t);\n}\n\nconst styles = StyleSheet.create({\n\tcontainer: {\n\t\tflex: 1,\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t},\n});\n```\n\n```js\nimport { BarcodeView, QRCodeView } from \"expo-barcode\";\nimport { useState } from \"react\";\nimport { StyleSheet, View, Text, TextInput, Button } from \"react-native\";\n\nexport default function App() {\n\tconst [value, setValue] = useState(\"\");\n\tconst [barcodeValue, setBarcodeValue] = useState(\"\");\n\tconst [toggleGenCode, setToggleGenCode] = useState(\"QR\");\n\n\treturn (\n\t\t\u003cView style={styles.container}\u003e\n\t\t\t\u003cText\u003eResult: \u003c/Text\u003e\n\t\t\t{barcodeValue \u0026\u0026\n\t\t\t\t(toggleGenCode === \"QR\" ? (\n\t\t\t\t\t\u003cQRCodeView value={barcodeValue} width={250} height={250} /\u003e\n\t\t\t\t) : (\n\t\t\t\t\t\u003cBarcodeView value={barcodeValue} width={300} height={100} /\u003e\n\t\t\t\t))}\n\t\t\t\u003cTextInput\n\t\t\t\tvalue={value}\n\t\t\t\tonChangeText={setValue}\n\t\t\t\tplaceholder=\"Type Here\"\n\t\t\t/\u003e\n\t\t\t\u003cButton title=\"Generate QR Code\" onPress={() =\u003e setBarcodeValue(value)} /\u003e\n\t\t\t\u003cButton\n\t\t\t\ttitle=\"Toggle QR/Barcode\"\n\t\t\t\tonPress={() =\u003e\n\t\t\t\t\tsetToggleGenCode(toggleGenCode === \"QR\" ? \"Barcode\" : \"QR\")\n\t\t\t\t}\n\t\t\t/\u003e\n\t\t\u003c/View\u003e\n\t);\n}\n\nconst styles = StyleSheet.create({\n\tcontainer: {\n\t\tflex: 1,\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t},\n});\n```\n\n### Using generating functions\n\n```js\nimport { generateBarcode, generateQRCode } from \"expo-barcode\";\n\nasync function waitForIt() {\n    const qrCodeGenerated = await generateQRCode(\"Hello\", 200, 200);\n\n    console.log(qrCodeGenerated);\n\n    const barCodeGenerated = await generateBarcode(\"Hello\", 300, 200);\n\n    console.log(barCodeGenerated);\n}\n\nwaitForIt();\n```\n\n## Contributors\n\n- Gabriel Logan - Creator\n\n## License\n\nMIT\n\n# API documentation\n\n- [Documentation for the main branch](https://github.com/expo/expo/blob/main/docs/pages/versions/unversioned/sdk/barcode.md)\n- [Documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/barcode/)\n\n# Installation in managed Expo projects\n\nFor [managed](https://docs.expo.dev/archive/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](#api-documentation). If you follow the link and there is no documentation available then this library is not yet usable within managed projects \u0026mdash; it is likely to be included in an upcoming Expo SDK release.\n\n# Installation in bare React Native projects\n\nFor bare React Native projects, you must ensure that you have [installed and configured the `expo` package](https://docs.expo.dev/bare/installing-expo-modules/) before continuing.\n\n# Contributing\n\nContributions are very welcome! Please refer to guidelines described in the [contributing guide]( https://github.com/expo/expo#contributing).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabriel-logan%2Fexpo-barcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabriel-logan%2Fexpo-barcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabriel-logan%2Fexpo-barcode/lists"}