Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
react-native-star-io10
Advanced tools
react-native-star-io10 is a library for supporting application development for Star Micronics devices.
react-native-star-io10
is a library for supporting application development for Star Micronics devices.
This library is included in StarXpand SDK.
Please refer here for StarXpand SDK documentation.
Documentation includes an overview of the SDK, how to build a sample application, how to use the API, and a API reference.
Platform | Version | Arch |
---|---|---|
iOS | iOS 13.0 or later | Device: arm64 Simulator: x86_64, arm64 |
Android | Android 9.0 or later | arm64-v8a, armeabi-v7a, x86, x86_64 |
Windows | Windows 11 / Windows 10 22H2 | x86, x64 |
npm install react-native-star-io10 --save
Some settings and approvals are required depending on the printer interface.
Please check the table below and take action.
Interface of the printer | Necessary actions |
---|---|
Bluetooth | 1. & 2. & 4. |
Bluetooth Low Energy | 2. |
Ethernet (iOS14 or later) | 3. |
Lightning USB | 1. & 4. |
Supported external accessory protocols
Supported external accessory protocols
Key.jp.star-m.starpro
.:warning: If you do not use the printer concerned, do not configure this setting.
Bluetooth Always Usage Description
and Bluetooth Peripheral Usage Description
Privacy – Bluetooth Always Usage Description
Key.Deployment Target
to iOS12, add the Privacy – Bluetooth Peripheral Usage Description
Key.Use Bluetooth for communication with the printer.
)For more information, please refer to the following URL.
Local Network Usage Description
Privacy - Local Network Usage Description
Key.Use Local Network for communication with the printer or discovery the printers.
)In order to offer your application that communicates a MFi certified printer on the Apple iTunes App Store, your application needs to be approved by the Apple MFi program before you submit it to the Apple iTunes App Store. Please follow the steps described in the URL below to obtain the app approval. This procedure must be completed before the app is reviewed by Apple.
https://star-m.jp/eng/products/s_print/apple_app_mfi.html
:warning: In case of a Bluetooth Low Energy printer, you do not need to obtain this app approval.
Refer to sample code and request BLUETOOTH_CONNECT permission before starting to communicate with or search for the printer.
Package.appxmanifest
.
In Android, when an image file size is large, and its URL is specified as the source of the ImageParameter which is the argument of the actionPrintImage method, the image may be printed in low resolution.
This can be solved by either of the following methods:
StarXpand SDK includes an example application that can be used in combination with the printer to check its operation. Please use it in conjunction with the explanations of each function in the linked pages.
The sample code and printed result images are also available here.
:warning: Some printer models may not be able to print some samples. Please adjust the layout accordingly when using this samples.
async getStatus(): Promise<void> {
// Specify your printer connection settings.
var settings = new StarConnectionSettings();
settings.interfaceType = InterfaceType.Lan;
settings.identifier = '00:11:62:00:00:00';
var printer = new StarPrinter(settings);
try {
// Connect to the printer.
await printer.open();
// Get printer status.
var status = await printer.getStatus();
console.log(status);
}
catch(error) {
// Error.
console.log(error);
}
finally {
// Disconnect from the printer and dispose object.
await printer.close();
await printer.dispose();
}
}
printer: StarPrinter;
async monitor(): Promise<void> {
// Specify your printer connection settings.
var settings = new StarConnectionSettings();
settings.interfaceType = InterfaceType.Lan;
settings.identifier = '00:11:62:00:00:00';
printer = new StarPrinter(settings);
// Callback for printer state changed.
printer.printerDelegate.onReady = () => {
console.log(`Printer: Ready`);
}
printer.drawerDelegate.onOpenCloseSignalSwitched = (openCloseSignal) => {
console.log(`Drawer: Open Close Signal Switched: ${String(openCloseSignal)}`);
}
printer.inputDeviceDelegate.onDataReceived = (data) => {
console.log(`Input Device: DataReceived ${String(data)}`);
}
printer.displayDelegate.onConnected = () => {
console.log(`Display: Connected`);
}
// ...
// Please refer to document for other callback.
try {
// Connect to the printer.
await printer.open();
}
catch(error) {
// Error.
console.log(error);
}
}
Copyright 2021 Star Micronics Co., Ltd. All rights reserved.
1.5.0 (2023/10/27)
Added MCP31CI/CBI support.
Faster print data generation.
iOS/Android: Added a sample to generate receipt images from text data.
Bug Fix:
style
) set with DocumentBuilder.addPrinter()
were not reset when the method ended.FAQs
react-native-star-io10 is a library for supporting application development for Star Micronics devices.
The npm package react-native-star-io10 receives a total of 2,383 weekly downloads. As such, react-native-star-io10 popularity was classified as popular.
We found that react-native-star-io10 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.