{"id":25398309,"url":"https://github.com/axelmarciano/rn-star-prnt","last_synced_at":"2025-06-17T23:39:16.978Z","repository":{"id":275364737,"uuid":"925879006","full_name":"axelmarciano/rn-star-prnt","owner":"axelmarciano","description":"Updated fork of react-native-star-prnt to maintain compatibility and functionality with Star Micronics Bluetooth/LAN printers","archived":false,"fork":false,"pushed_at":"2025-02-05T21:10:07.000Z","size":2610,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-16T19:44:52.936Z","etag":null,"topics":["expo","react-native","react-native-star-prnt","rn-star-prnt","starprint","starprnt","tsp100"],"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/axelmarciano.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":"2025-02-02T00:37:58.000Z","updated_at":"2025-02-05T21:10:11.000Z","dependencies_parsed_at":"2025-02-02T00:41:22.384Z","dependency_job_id":"cbc22da9-a01f-4302-b961-a8e2818a1acb","html_url":"https://github.com/axelmarciano/rn-star-prnt","commit_stats":null,"previous_names":["axelmarciano/rn-star-prnt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/axelmarciano/rn-star-prnt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axelmarciano%2Frn-star-prnt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axelmarciano%2Frn-star-prnt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axelmarciano%2Frn-star-prnt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axelmarciano%2Frn-star-prnt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axelmarciano","download_url":"https://codeload.github.com/axelmarciano/rn-star-prnt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axelmarciano%2Frn-star-prnt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260458900,"owners_count":23012505,"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":["expo","react-native","react-native-star-prnt","rn-star-prnt","starprint","starprnt","tsp100"],"created_at":"2025-02-15T22:36:30.224Z","updated_at":"2025-06-17T23:39:11.959Z","avatar_url":"https://github.com/axelmarciano.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rn-star-prnt\n\nReact Native bridge for [Star Micronics printers](http://www.starmicronics.com/pages/All-Products).  \n\nThis is a **minimal maintenance fork** of [`react-native-star-prnt`](https://github.com/infoxicator/react-native-star-prnt), focused on **keeping the package functional** with updated dependencies. I do not actively maintain or provide support for issues, but contributions are welcome!  \n\n## Why This Fork?  \n\n- The original package was outdated and had compatibility issues.  \n- I updated the **iOS native code** to use the latest `xcframework` from [Star Micronics' official SDK](https://github.com/star-micronics/starprnt-sdk-ios-swift).  \n- This **fixes issues running on the iOS simulator** and ensures compatibility with recent Xcode versions.  \n- I **bumped dependencies**, ensuring the package works with recent React Native versions.  \n- **Converted `.m` files to `.mm`** where necessary to support C++ code.  \n\n### Why Not Use `react-native-star-io10`?  \n\nThe newer `react-native-star-io10` package is well-maintained, but it **completely breaks printing on the TSP100**, which is my target printer. This fork ensures the older implementation remains functional while staying compatible with modern React Native versions.  \n\n---\n\n## Installation  \n\n```sh  \n$ npm install rn-star-prnt --save  \n```  \n\n### Linking  \n\n```sh  \n$ react-native link rn-star-prnt  \n```  \n\n#### iOS Configuration  \n\n1. Open Xcode, go to **Build Phases** \u003e **Link Binary with Libraries**, and add the following frameworks:  \n   - Go to `node_modules/rn-star-prnt/ios/Frameworks` and add `StarIO.xcframework` and `StarIO_Extension.xcframework`.  \n   - Add `CoreBluetooth.framework` and `ExternalAccessory.framework`.  \n\n2. Go to **Build Settings** \u003e **Search Paths** and add:  \n   ```sh  \n   $(PROJECT_DIR)/../node_modules/rn-star-prnt/ios/Frameworks  \n   ```  \n   to **Framework Search Paths**.  \n\n3. For **Bluetooth printers**, update your `Info.plist` file:  \n   - Add **Supported external accessory protocols** (`UISupportedExternalAccessoryProtocols`).  \n   - Set `Item 0` to:  \n     ```sh  \n     jp.star-m.starpro  \n     ```  \n\n---\n\n## Usage  \n\n```javascript  \nimport { StarPRNT } from 'rn-star-prnt';\n\nasync function portDiscovery() {  \n    try {  \n        let printers = await StarPRNT.portDiscovery('All');  \n        console.log(printers);  \n    } catch (e) {  \n        console.error(e);  \n    }  \n}  \n```  \n\n## Contributing  \n\nI am **not actively maintaining** this package beyond ensuring it remains functional. However, **pull requests are welcome** if you want to improve it!  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxelmarciano%2Frn-star-prnt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxelmarciano%2Frn-star-prnt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxelmarciano%2Frn-star-prnt/lists"}