Skip to content

Release 4.0.0-beta.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@tr3v3r tr3v3r released this 28 Mar 08:11
· 52 commits to main since this release

4.0.0-beta.2 (2024-03-28)

Breaking:

  1. Moved print helpers to Printer static methods.

Before:

import { tryToConnectUntil } from 'react-native-esc-pos-printer'
...
tryToConnectUntil(
printerInstance,
(status) => status.online.statusCode === PrinterConstants.TRUE
)

After:

import { Printer } from 'react-native-esc-pos-printer'
...
Printer.tryToConnectUntil(
printerInstance,
(status) => status.online.statusCode === PrinterConstants.TRUE
)
  1. Moved pairBluetoothDevice to Discovery class

Refactoring:

  1. Move native constants to StringHelpers class
  2. Clean up Printer native classes on Android and iOS from redundant code