{"id":42121415,"url":"https://github.com/oolio-group/rn-receipt-printer-utils","last_synced_at":"2026-01-26T14:33:28.711Z","repository":{"id":39753313,"uuid":"329247191","full_name":"oolio-group/rn-receipt-printer-utils","owner":"oolio-group","description":"A react-native library to establish a connection to thermal printers over network, thus enables to send buffer to printer","archived":false,"fork":false,"pushed_at":"2025-07-30T08:34:48.000Z","size":36861,"stargazers_count":3,"open_issues_count":9,"forks_count":1,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-11-23T16:02:33.134Z","etag":null,"topics":["android","ios","network","react-native","thermal-printer"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/oolio-group.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":"2021-01-13T08:51:45.000Z","updated_at":"2025-07-03T04:37:57.000Z","dependencies_parsed_at":"2023-09-12T09:42:13.492Z","dependency_job_id":"b93caea3-e0bc-47cf-a8df-d722f6621bc6","html_url":"https://github.com/oolio-group/rn-receipt-printer-utils","commit_stats":null,"previous_names":["oolio-group/rn-receipt-printer-utils","hitz-group/rn-receipt-printer-utils"],"tags_count":45,"template":false,"template_full_name":null,"purl":"pkg:github/oolio-group/rn-receipt-printer-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oolio-group%2Frn-receipt-printer-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oolio-group%2Frn-receipt-printer-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oolio-group%2Frn-receipt-printer-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oolio-group%2Frn-receipt-printer-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oolio-group","download_url":"https://codeload.github.com/oolio-group/rn-receipt-printer-utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oolio-group%2Frn-receipt-printer-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28780349,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T13:55:28.044Z","status":"ssl_error","status_checked_at":"2026-01-26T13:55:26.068Z","response_time":59,"last_error":"SSL_read: 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":["android","ios","network","react-native","thermal-printer"],"created_at":"2026-01-26T14:33:27.848Z","updated_at":"2026-01-26T14:33:28.706Z","avatar_url":"https://github.com/oolio-group.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @tillpos/rn-receipt-printer-utils\n\n*Originally forked from [react-native-thermal-receipt-printer](https://github.com/HeligPfleigh/react-native-thermal-receipt-printer)*\n\nA React Native Library to connect to thermal printer over network and to send the buffer (data to be printed) to thermal printer.\n\n![Node.js Package](https://github.com/HeligPfleigh/react-native-thermal-receipt-printer/workflows/Node.js%20Package/badge.svg)\n\n## Installation\n\n```\nyarn add @tillpos/rn-receipt-printer-utils\n```\n\n## Troubleshoot\n\n- when install in `react-native` version \u003e= 0.60, xcode show this error\n\n```\nduplicate symbols for architecture x86_64\n```\n\nthat because the .a library uses [CocoaAsyncSocket](https://github.com/robbiehanson/CocoaAsyncSocket) library and Flipper uses it too\n\n_Podfile_\n\n```diff\n...\n  use_native_modules!\n\n  # Enables Flipper.\n  #\n  # Note that if you have use_frameworks! enabled, Flipper will not work and\n  # you should disable these next few lines.\n  # add_flipper_pods!\n  # post_install do |installer|\n  #   flipper_post_install(installer)\n  # end\n...\n```\n\nand comment out code related to Flipper in `ios/AppDelegate.m`\n![ios/AppDelegate.m](./.github/flipper.png)\n\n\n## Support\n\n| Printer    | Android            | IOS                |\n| ---------- | ------------------ | ------------------ |\n| USBPrinter | :x: |   :negative_squared_cross_mark:|\n| BLEPrinter | :heavy_check_mark: | :heavy_check_mark: |\n| NetPrinter | :heavy_check_mark: | :heavy_check_mark: |\n\n## Tested on following platforms (manual)\n\n| Platform    | Framework / lib            | Tested                |\n| ---------- | ------------------ | ------------------ |\n| Android | React Native |   :heavy_check_mark:|\n| iOS | React Native | :heavy_check_mark: |\n\n## Development workflow\n\nTo get started with the project, run `yarn bootstrap` in the root directory to install the required dependencies for each package:\n\n```sh\nyarn bootstrap\n```\n\nWhile developing, you can run the [example app](/example/) to test your changes.\n\nTo start the packager:\n\n```sh\nyarn example start\n```\n\nTo run the example app on Android:\n\n```sh\nyarn example android\n```\n\nTo run the example app on iOS:\n\n```sh\nyarn example ios\n```\n\nTo make build\n\n```sh\nyarn prepare\n```\n\n## Usage\n\n```javascript\nimport {\n  USBPrinter,\n  NetPrinter,\n  BLEPrinter,\n} from \"@tillpos/rn-receipt-printer-utils\";\n\nBLEPrinter.connectAndSend(\"xx-xx-xx-xx-xx\", \"\u003cbase64\u003e\", ()=\u003enull, ()=\u003enull);\nNetPrinter.connectAndSend(\"xx-xx-xx-xx-xx\", 9100, \"\u003cbase64\u003e\", ()=\u003enull, ()=\u003enull);\n```\n\n## Example\n\n### NetPrinter\n\n```typescript\ninterface INetPrinter {\n  device_name: string;\n  host: string;\n  port: number;\n  brand?: PrinterBrand;\n}\n```\n\n_Note:_ get list device for net printers is support scanning in local ip but not recommended\n\n```javascript\n\n  const printer = {\n    host: \"192.168.10.24\", \n    port: 9100,\n    device_name: \"Sample printer\",\n    brand: PrinterBrand.EPSON\n  }\n  _connectPrinter =\u003e () =\u003e {\n    //connect printer\n    await NetPrinter.connectAndSend(\n      printer.host, \n      printer.port,\n      (printer) =\u003e console.log(\"Printed\"),\n      error =\u003e console.warn(error)\n    )\n  }\n\n  render() {\n    return (\n      \u003cView style={styles.container}\u003e\n        {\n            \u003cTouchableOpacity onPress={(printer) =\u003e this._connectPrinter()}\u003e\n              {`device_name: ${printer.device_name}, host: ${printer.host}, port: ${printer.port}`}\n            \u003c/TouchableOpacity\u003e\n            ))\n        }\n      \u003c/View\u003e\n    )\n  }\n\n  ...\n\n```\n\n\n## TODO\n\n- [x] Update documentation\n- [ ] Maintain Multiple connections\n- [ ] Use `release-it` to publish builds\n- [x] Bluetooth support\n- [ ] USB support\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foolio-group%2Frn-receipt-printer-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foolio-group%2Frn-receipt-printer-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foolio-group%2Frn-receipt-printer-utils/lists"}