All Projects β†’ unichat-io β†’ react-local-currency

unichat-io / react-local-currency

Licence: other
πŸ’΅ πŸ’΄Shows the price of your services in the customer's currency πŸ’Ά πŸ’·

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-local-currency

django-prices-openexchangerates
openexchangerates.org support for django-prices
Stars: ✭ 33 (+57.14%)
Mutual labels:  money, currency, price, currencies, openexchangerates
Money
PHP implementation of Fowler's Money pattern.
Stars: ✭ 3,868 (+18319.05%)
Mutual labels:  money, currency, currency-exchange-rates, currency-converter
currency-converter
πŸ’° Easily convert between 32 currencies
Stars: ✭ 16 (-23.81%)
Mutual labels:  money, currency, currencies, currency-converter
currency-api
Free Currency Exchange Rates API with 150+ Currencies & No Rate Limits
Stars: ✭ 507 (+2314.29%)
Mutual labels:  currency, currency-exchange-rates, currency-converter
javascript-forex-quotes
JavaScript Library for fetching realtime forex quotes.
Stars: ✭ 38 (+80.95%)
Mutual labels:  currency, currency-exchange-rates, currency-converter
php-currency-api
Standardized wrapper for popular currency rate APIs. Currently supports FixerIO, CurrencyLayer, Open Exchange Rates and Exchange Rates API.
Stars: ✭ 17 (-19.05%)
Mutual labels:  currency, currency-exchange-rates, currency-converter
Gocurrency
Simple currency converter. Insert an amount, what currency to convert from and what currency to convert to.
Stars: ✭ 26 (+23.81%)
Mutual labels:  currency, currencies, currency-converter
Swap
πŸ’± Currency exchange rates library
Stars: ✭ 1,195 (+5590.48%)
Mutual labels:  money, currency, currency-converter
Money
A money and currency library for PHP
Stars: ✭ 855 (+3971.43%)
Mutual labels:  money, currency, currency-converter
GoCurrency
Simple currency converter. Insert an amount, what currency to convert from and what currency to convert to.
Stars: ✭ 29 (+38.1%)
Mutual labels:  currency, currencies, currency-converter
Django Prices
Django fields for the prices module
Stars: ✭ 135 (+542.86%)
Mutual labels:  money, currency, currencies
Javamoney Lib
JavaMoney financial libraries, extending and complementing JSR 354
Stars: ✭ 104 (+395.24%)
Mutual labels:  money, currency, currencies
historical-bank-ruby
A Ruby Bank that serves historical exchange rates
Stars: ✭ 14 (-33.33%)
Mutual labels:  currency, currency-exchange-rates, currency-converter
Laravel Money
Currency formatting and conversion package for Laravel
Stars: ✭ 261 (+1142.86%)
Mutual labels:  money, currency, currency-converter
Prices
Python price handling for humans.
Stars: ✭ 248 (+1080.95%)
Mutual labels:  money, currency, currencies
Android Money
Simple money and currency converter library for android.
Stars: ✭ 66 (+214.29%)
Mutual labels:  money, currency, currency-converter
Countries
Countries - ISO 3166 (ISO3166-1, ISO3166, Digit, Alpha-2 and Alpha-3) countries codes and names (on eng and rus), ISO 4217 currency designators, ITU-T E.164 IDD calling phone codes, countries capitals, UN M.49 regions codes, ccTLD countries domains, IOC/NOC and FIFA letters codes, VERY FAST, NO maps[], NO slices[], NO init() funcs, NO external links/files/data, NO interface{}, NO specific dependencies, Databases/JSON/GOB/XML/CSV compatible, Emoji countries flags and currencies support, full support ISO-3166-1, ISO-4217, ITU-T E.164, Unicode CLDR and ccTLD standarts.
Stars: ✭ 85 (+304.76%)
Mutual labels:  money, currency, currencies
Cash Cli
πŸ’°πŸ’° Convert currency rates directly from your terminal!
Stars: ✭ 168 (+700%)
Mutual labels:  money, currency, currencies
stockholm
πŸ’΅ Modern Python library for working with money and monetary amounts. Human friendly and flexible approach for development. 100% test coverage + built-in support for GraphQL and Protocol Buffers transports using current best-practices.
Stars: ✭ 26 (+23.81%)
Mutual labels:  money, currency, currencies
Guide-to-Swift-Numbers-Sample-Code
Xcode Playground Sample Code for the Flight School Guide to Swift Numbers
Stars: ✭ 92 (+338.1%)
Mutual labels:  money, currency

React Local Currency

Travis npm package Coveralls

Logo

Installation

First, install the component:

yarn add react-local-currency

or

npm i react-local-currency --save

Usage

  import * as React from 'react'
  import LocalCurrency from 'react-local-currency'

  const ReactLocalCurrency = () => (
   <LocalCurrency
      amount={7}
      base='USD'
      IPDATA_API_KEY={process.env.REACT_APP_IPDATA_API_KEY} // Get the api key from http://ipdata.co
      OXR_API_ID={process.env.REACT_APP_OXR_API_ID} // Get the api id from https://openexchangerates.org
      render={({ data, loading, error }) => {
        if (error) return `Error! ${error.message}`

        if (loading) return 'Loading ...'

        if (!data) return null

        return (
          <div>
            <h3>
              My service price: <strong>7 USD.</strong>
            </h3>
            <h3>
              My currency based on my IP: <strong>{`${data.currency}`}</strong>
            </h3>
            <h3>
              My local price is: <strong>{`${data.amount} ${data.currency}`}</strong>
            </h3>
          </div>
        )
      }}
    />
  )

  export default ReactLocalCurrency

To see a full example, look at the demo and the source πŸ‘©πŸ»β€πŸ’» πŸ‘¨πŸ»β€πŸ’»

Credits

Thanks to Nadia Ilustraciones for donating the logo!

Authors

Sponsored by

License

MIT license. Copyright Β© 2018.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].