react-native-formatupcliu

1.0.0 • Public • Published

React Native UnzipLiu npm npm

Format UPC to UPCE,UPCA,LongUPC for React Native App

Installation

npm install react-native-formatupcliu --save
react-native link react-native-formatupcliu

Usage

import it into your code

import { formatUPC } from 'react-native-formatupcliu';

API

formatUPC(source: string): Promise

format UPC string to UPCE,UPCA,LongUPC array

Example

const upc = '0111111111117';

formatUPC(upc).then((formattedUPCArr) => {
  console.log(...formattedUPCArr);
}).catch((error) => {
  console.log(error);
});

Package Sidebar

Install

npm i react-native-formatupcliu

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

51.2 kB

Total Files

12

Last publish

Collaborators

  • xiaomeng2018