Calculator-Native-App
Getting Started
- Clone the repository on your computer using:
git clone URL. - Go to the APP directory.
- Install dependencies using
npm install. - If you have expo and an Android simulator installed, you can run the app with the command
npm startand select the desired option.
- If you don’t have expo and an Android simulator installed, search for a tutorial on YouTube.
Description
This application is made with react native. It is a calculator that allows to:
- Change the theme from light to dark
- Add
- Subtract
- Multiply
- Divide
- Change from positive to negative and vice versa
- Return to 0
- Get the percentage
It is my first native application. The first of hopefully many 😀
Technologies used
- React Native
- CSS
- Expo
Libraries used
- Expo
Portfolio Link
https://diegolibonati.github.io/DiegoLibonatiWeb/#/projects?q=Calculator%20Native%20App
Galery
Video
Documentation
Theme
- If you want to change any style or the entire styles of the application, you can do it through:
calculator-native-app\src\theme\theme.js.
Contexts – Logic
-
The UI logic is changed in the following path:
src\contexts\UIContext.jsx. -
The Calculator logic is changed in the following path:
src\contexts\CalculatorContext.jsx. All the mathematical operation logic is inside this context.
General views
In general terms, the application is composed of a main component called Main. This component is encompassed by the context providers UI and Calculator. Inside Main, we will find the different views. The available Views are 3:
Switch View: It is where the Switch to change the theme is rendered.Screen View: It is where the results of the mathematical calculations are rendered.Buttons View: It is where the buttons to use the application are rendered.




