From d26d041b8d3eac5d0717b5079b40d18666b4cfb7 Mon Sep 17 00:00:00 2001 From: Mauritz Lemgen <90466635+Developer-07@users.noreply.github.com> Date: Fri, 12 Apr 2024 10:12:59 +0000 Subject: [PATCH] geil --- .expo/README.md | 15 ++++++++ .expo/settings.json | 8 +++++ calculator/App.js | 52 ++++++++++++++++++++++----- calculator/components/Button.js | 48 +++++++++++++++++++++---- calculator/package-lock.json | 64 ++++++++++++++++++++++++++++++++- calculator/package.json | 3 +- package-lock.json | 6 ---- tunnel/.expo/README.md | 15 ++++++++ tunnel/.expo/settings.json | 8 +++++ 9 files changed, 195 insertions(+), 24 deletions(-) create mode 100644 .expo/README.md create mode 100644 .expo/settings.json delete mode 100644 package-lock.json create mode 100644 tunnel/.expo/README.md create mode 100644 tunnel/.expo/settings.json 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 - -