0.0.31 • Published 5 months ago
@june-native/native-hybrid-widgets v0.0.31
NATIVE Widget
NATIVE Swap Widget
The NATIVE Swap Widget allows you to build customized front-end interfaces for the NATIVE protocol, and embed widgets in DeFi applications for quick asset exchange and other uses. NATIVE currently supports 12 chains in total, including Ethereum, BNB Chain, Polygon, Arbitrum, Avalanche, Heco, Moonriver, OKC, BOBA, Optimism, Aurora, and Cronos. We intend to add support for more chains in the future.
Installation
Install the widgets library via npm or yarn.
yarn add @native-ammv3/widgetsnpm i --save @native-ammv3/widgetsDocumentation
You can find the NATIVE Widget documentation on the website and check out the Getting Started page for a quick overview.
Examples
Inside the examples folder, there two different examples,
For react app:
$ git clone git@github.com:NATIVE/widgets.git
$ cd example/react-appFor js app:
$ git clone git@github.com:NATIVE/widgets.git
$ cd example/js-appInstall and run the example:
yarn # install dependencies
yarn start # run the development server
# or
npm # install dependencies
npm run start # run the development serverOther details: