Skip to content

MultiSafepay/react-native-sunmi-cloud-printer

Repository files navigation

react-native-sunmi-cloud-printer

React Native Sunmi Cloud Printer SDK

API documentation

Installation in managed Expo projects

For managed Expo projects, please follow the installation instructions in the API documentation for the latest stable release. If you follow the link and there is no documentation available then this library is not yet usable within managed projects — it is likely to be included in an upcoming Expo SDK release.

Installation in bare React Native projects

For bare React Native projects, you must ensure that you have installed and configured the expo package before continuing.

Add the package to your npm dependencies

npm install react-native-sunmi-cloud-printer

General configuration

Please, do not forget to add the Expo config plugin to your app. Otherwise, the app will crash on Android due to not having the native external Sunmi Printer library.

Configure for iOS

Run npx pod-install after installing the npm package.

Configure for Android

Due to an issue with the Android Gradle Plugin (AGP) that doesn't support direct local AAR dependencies in Android library projects, the Consumer's app must declare as a dependency the AAR library.

Contributing

Contributions are very welcome! Please refer to guidelines described in the contributing guide.