diff --git a/.expo/README.md b/.expo/README.md new file mode 100644 index 0000000..fd146b4 --- /dev/null +++ b/.expo/README.md @@ -0,0 +1,15 @@ +> Why do I have a folder named ".expo" in my project? + +The ".expo" folder is created when an Expo project is started using "expo start" command. + +> What do the files contain? + +- "devices.json": contains information about devices that have recently opened this project. This is used to populate the "Development sessions" list in your development builds. +- "packager-info.json": contains port numbers and process PIDs that are used to serve the application to the mobile device/simulator. +- "settings.json": contains the server configuration that is used to serve the application manifest. + +> Should I commit the ".expo" folder? + +No, you should not share the ".expo" folder. It does not contain any information that is relevant for other developers working on the project, it is specific to your machine. + +Upon project creation, the ".expo" folder is already added to your ".gitignore" file. diff --git a/.expo/settings.json b/.expo/settings.json new file mode 100644 index 0000000..92bc513 --- /dev/null +++ b/.expo/settings.json @@ -0,0 +1,8 @@ +{ + "hostType": "lan", + "lanType": "ip", + "dev": true, + "minify": false, + "urlRandomness": null, + "https": false +} diff --git a/calculator/App.js b/calculator/App.js index 3bea9ee..8a778e0 100644 --- a/calculator/App.js +++ b/calculator/App.js @@ -1,17 +1,51 @@ import { StatusBar } from 'expo-status-bar'; -import { Pressable, StyleSheet, Text, View } from 'react-native'; +import * as React from 'react'; +import { Pressable, StyleSheet, Text, View, Vibration } from 'react-native'; import Button from './components/Button'; +import { ScrollView } from 'react-native'; export default function App() { - return ( - + const [display, setDisplay] = React.useState("0"); + const [last, setLast] = React.useState(""); + - 6,291 / 5 - 1,5258.2 - -