Skip to content

ThiBsc/UnitsTool

Repository files navigation

UnitsTool

Donate using Liberapay License: GPLv3
An application to convert units
Available languages : 🇬🇧, 🇫🇷, 🇪🇸

Get it on Google Play

home languages category currency temperature

Privacy

This application does not store or use any data from the user

How to use

  • Select the category you want by touching it
  • Select your favorite unit by touching the star
  • Enter your value to convert

Contribute

Helping for a beautiful app icon

if someone can make a beautiful icon for this app, it will be very appreciate !

By completing conversion.json

This file is the core of the application, it describe what is supposed to be displayed on the Home page, on each element in the list and the conversion formula to use.

The icon key must have a value accepted on the font-awesome website

Example of a category

{
    "category": "mycategory",
    "title": "My Category",
    "icon": "tint",
    "reference": "UnityName",
    "units": [
        {
            "name": "UnityName",
            "symbol": "°C",
            "formula": "* 1"
        },
        {
            "name": "OtherUnity",
            "symbol": "°F",
            "formula": "* 1.8 + 32",
            "reverseFormula": "- 32 / 1.8"
        }
    ]
}

The formula must always have a space between the operand and the number and there is no notion of mathematical priority. It's always calculated in the order of the formula.
Also, for each operand you must have a following number and the first caracter must always be an operator (+, -, *, /).

How to run

React-native environment setup

# Run Metro in a terminal
npx react-native start
# Run the app
npx react-native run-android

Resources

docs

https://reactnative.dev/docs/getting-started
https://reactnativeelements.com/
https://reactnavigation.org/