Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
node_modules/
npm-debug.log
yarn-error.log
bun.lockb


# Xcode
Expand Down
3 changes: 0 additions & 3 deletions .yarnrc

This file was deleted.

31 changes: 20 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,20 @@ A React Native Library to connect to thermal printer over network and to send th

![Node.js Package](https://github.com/HeligPfleigh/react-native-thermal-receipt-printer/workflows/Node.js%20Package/badge.svg)

## Compatibility

- **React Native 0.75+** ✅
- **React 18.x** ✅
- **iOS 12.4+** ✅
- **Android API 23+** ✅
- **Autolinking** ✅
- **New Architecture (Fabric/TurboModules)** ✅
- **Hermes** ✅

## Installation

```
yarn add @tillpos/rn-receipt-printer-utils
bun add @tillpos/rn-receipt-printer-utils
```

## Troubleshoot
Expand All @@ -32,15 +42,14 @@ _Podfile_
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable these next few lines.
# add_flipper_pods!
# :flipper_configuration => FlipperConfiguration.enabled,
# post_install do |installer|
# flipper_post_install(installer)
# react_native_post_install(installer)
# end
...
```

and comment out code related to Flipper in `ios/AppDelegate.m`
![ios/AppDelegate.m](./.github/flipper.png)
and comment out code related to Flipper in `ios/AppDelegate.m` if issues persist


## Support
Expand All @@ -60,36 +69,36 @@ and comment out code related to Flipper in `ios/AppDelegate.m`

## Development workflow

To get started with the project, run `yarn bootstrap` in the root directory to install the required dependencies for each package:
To get started with the project, run `bun bootstrap` in the root directory to install the required dependencies for each package:

```sh
yarn bootstrap
bun bootstrap
```

While developing, you can run the [example app](/example/) to test your changes.

To start the packager:

```sh
yarn example start
bun example start
```

To run the example app on Android:

```sh
yarn example android
bun example android
```

To run the example app on iOS:

```sh
yarn example ios
bun example ios
```

To make build

```sh
yarn prepare
bun prepare
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
presets: ['module:@react-native/babel-preset'],
};
Loading