0.10.0 • Published 4 years ago

@chargetrip/react-sdk v0.10.0

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

@chargetrip/react-sdk

@chargetrip/javascript-sdk

Version MIT License

React SDK for Chargetrip services.

Disclaimer: The package is under active development and the final API is a subject to change.

Installation & usage

Install the package in your project:

yarn add @chargetrip/react-sdk

Then import it:

import * as NativeSDK from '@chargetrip/react-sdk/native';
// or
import * as WebSDK from '@chargetrip/react-sdk/web';

// TODO: example

Target support

@chargetrip/react-sdk supports:

  • TypeScript - provides type declarations for the JavaScript files
  • Browser - provides pre-built and minified ESM modules for those browsers under @chargetrip/react-sdk/web
  • React Native - provides source code (the build will done in your project) under @chargetrip/react-sdk/native

If you need to target different environments or only modern browsers, we recommend to setup compilation of the shipped source code in your project. The source code is available in @chargetrip/react-sdk/src directory. If you're using using Babel, please make sure the following presets/plugins are included in your Babel config:

  • @babel/preset-typescript
  • @babel/plugin-proposal-class-properties
  • @babel/plugin-proposal-optional-chaining
  • @babel/plugin-proposal-nullish-coalescing-operator

Sponsors

Chargetrip logo

0.10.0

4 years ago

0.9.7

4 years ago

0.9.6

4 years ago

0.9.5

4 years ago

0.9.4

4 years ago

0.9.3

4 years ago

0.9.2

4 years ago

0.9.1

4 years ago

0.9.0

4 years ago

0.8.1

4 years ago

0.8.0

4 years ago

0.7.2

4 years ago

0.7.1

4 years ago

0.7.0

4 years ago