0.3.1-beta • Published 3 years ago

@g01-tecnologia/react-native-pos-print-preview v0.3.1-beta

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@g01-tecnologia/react-native-pos-print-preview

Virtual view that simulates a POS printer. This is a work in progress currently in beta state.

Installation

npm install @g01-tecnologia/react-native-pos-print-preview
# or
yarn add @g01-tecnologia/react-native-pos-print-preview

Usage

import VirtualPOS from '@g01-tecnologia/react-native-pos-print-preview';

//...

const [commands, setCommands] = useState([{ cmd: null, prn: 'Hello POS!' }]);

return <VirtualPOS data={commands} />;

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT