{"id":15019729,"url":"https://github.com/gabriel-logan/mobile-native-barcode-generator","last_synced_at":"2026-03-05T07:35:48.326Z","repository":{"id":255973822,"uuid":"854016656","full_name":"gabriel-logan/mobile-native-barcode-generator","owner":"gabriel-logan","description":"Library to generate barcodes and qr codes natively using Kotlin and Swift, integrated with react native.","archived":false,"fork":false,"pushed_at":"2025-09-24T21:47:56.000Z","size":2667,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T16:38:04.612Z","etag":null,"topics":["java","kotlin","library","npm","npm-library","react","react-native","react-native-library","swift"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/mobile-native-barcode-generator","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/gabriel-logan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":"gabriellogan","custom":null}},"created_at":"2024-09-08T07:08:57.000Z","updated_at":"2025-09-24T21:47:54.000Z","dependencies_parsed_at":"2024-09-08T08:27:06.956Z","dependency_job_id":"75032543-9007-403a-8e36-6b78cdebc608","html_url":"https://github.com/gabriel-logan/mobile-native-barcode-generator","commit_stats":null,"previous_names":["gabriel-logan/mobile-native-barcode-generator"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/gabriel-logan/mobile-native-barcode-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabriel-logan%2Fmobile-native-barcode-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabriel-logan%2Fmobile-native-barcode-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabriel-logan%2Fmobile-native-barcode-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabriel-logan%2Fmobile-native-barcode-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabriel-logan","download_url":"https://codeload.github.com/gabriel-logan/mobile-native-barcode-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabriel-logan%2Fmobile-native-barcode-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30114316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T03:40:26.266Z","status":"ssl_error","status_checked_at":"2026-03-05T03:39:15.902Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["java","kotlin","library","npm","npm-library","react","react-native","react-native-library","swift"],"created_at":"2024-09-24T19:53:57.031Z","updated_at":"2026-03-05T07:35:48.295Z","avatar_url":"https://github.com/gabriel-logan.png","language":"TypeScript","funding_links":["https://buymeacoffee.com/gabriellogan"],"categories":[],"sub_categories":[],"readme":"\u003e [!NOTE]\n\u003e I accept help to make the IOS version.\n\n# Mobile Native Barcode Generator\n\n- mobile-native-barcode-generator\n\n[![npm version](https://badge.fury.io/js/mobile-native-barcode-generator.svg)](https://badge.fury.io/js/mobile-native-barcode-generator)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![npm downloads](https://img.shields.io/npm/dm/mobile-native-barcode-generator.svg?style=flat-square)](https://npm-stat.com/charts.html?package=mobile-native-barcode-generator)\n\nLibrary to generate barcodes and qr codes natively using Kotlin and Swift, integrated with react native.\n\n## Supported Frameworks\n\n- React Native - ✅\n- Expo GO - ❌ - [See Expo Version](https://github.com/gabriel-logan/expo-barcode)\n\n## Supported Architectures\n\n- Android - ✅\n- Ios - ❌\n- Web - ❌\n- Windows - ❌\n- Mac - ❌\n\n## Installation\n\n```sh\nnpm install mobile-native-barcode-generator\n```\n\n```sh\nyarn add mobile-native-barcode-generator\n```\n\n## Usage\n\n### Available methods\n\n```js\nimport {\n\tBarcodeView,\n\tQRCodeView,\n\tgenerateBarcode,\n\tgenerateQRCode,\n\tsaveBarcodeToGallery,\n\tsaveQRCodeToGallery,\n} from \"mobile-native-barcode-generator\";\n```\n\n### Using the components\n\n#### Simple example\n\n```js\nimport { QRCodeView } from \"mobile-native-barcode-generator\";\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 \"mobile-native-barcode-generator\";\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 \"mobile-native-barcode-generator\";\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### Saving generated image to internal gallery\n\n- [README](https://github.com/gabriel-logan/mobile-native-barcode-generator/blob/main/docs/saveToGallery.md)\n\n## Test using Jest\n\n- [README](https://github.com/gabriel-logan/mobile-native-barcode-generator/blob/main/docs/TEST.md)\n\n## Contributing\n\nSee the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.\n\n## Contributors\n\n- Gabriel Logan - Creator\n\n## License\n\nMIT\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabriel-logan%2Fmobile-native-barcode-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabriel-logan%2Fmobile-native-barcode-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabriel-logan%2Fmobile-native-barcode-generator/lists"}