js-sale-library
Set of tools and utilities written in javascript, focusing on sale major.
Mostly contains logic and independent of platform (react
, react-native
, node
)
Init it with an abstract Platform
before using, this allows the library to access platform's specific API (FileSystem, DeviceInfo...). For example:
// in a react-native project
import JsSaleLib from '@teko/js-sale-library';
import RnSaleLib from '@teko/react-native-sale-library';
JsSaleLib.init(RnSaleLib.Platform);
// in a react project
import JsSaleLib from '@teko/js-sale-library';
import RSaleLib from '@teko/react-sale-library';
JsSaleLib.init(RSaleLib.Platform);