Commit 1c979e97 authored by Dennis Willers's avatar Dennis Willers 🏀

Init

parent b03ddc31
...@@ -21,3 +21,8 @@ ...@@ -21,3 +21,8 @@
npm-debug.log* npm-debug.log*
yarn-debug.log* yarn-debug.log*
yarn-error.log* yarn-error.log*
# idea
.idea
/idea
/.idea
This diff is collapsed.
...@@ -3,18 +3,9 @@ ...@@ -3,18 +3,9 @@
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"dependencies": { "dependencies": {
"@react-navigation/native": "^6.0.2",
"@react-navigation/native-stack": "^6.1.0",
"browserslist": "^4.17.1",
"react": "^17.0.2", "react": "^17.0.2",
"react-dom": "^17.0.2", "react-dom": "^17.0.2",
"react-native": "^0.65.1", "react-scripts": "^2.1.8"
"react-native-pager-view": "^5.4.4",
"react-native-safe-area-context": "^3.3.2",
"react-native-screens": "^3.7.2",
"react-navigation": "^4.4.4",
"react-scripts": "^4.0.3",
"typescript": "^4.4.3"
}, },
"scripts": { "scripts": {
"start": "react-scripts start", "start": "react-scripts start",
...@@ -41,6 +32,7 @@ ...@@ -41,6 +32,7 @@
] ]
}, },
"devDependencies": { "devDependencies": {
"@babel/preset-env": "^7.15.6" "@babel/preset-env": "^7.15.6",
"web-vitals": "^2.1.0"
} }
} }
import willersDigitalLogo from './assets/logo/willers-digital-logo.png' import willersDigitalLogo from './assets/logo/willers-digital-logo.png'
import './App.css'; import './App.css';
import * as React from 'react'; import * as React from 'react';
import { View, Text } from 'react-native'; /*import { View, Text } from 'react-native';
import { NavigationContainer } from '@react-navigation/native'; import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack'; import { createNativeStackNavigator } from '@react-navigation/native-stack';*/
function homeContent() { function homeContent() {
return (
<div className="App">
<header className="App-header">
<img src={willersDigitalLogo} className="App-logo" alt="logo" />
<h1> Das ist meine erste Änderung</h1>
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
);
} }
function HomeScreen() { function HomeScreen() {
return ( /*return (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}> <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<Text>Home Screen</Text> <Text>Home Screen</Text>
</View> </View>
); );*/
} }
const Stack = createNativeStackNavigator(); // const Stack = createNativeStackNavigator();
function App() { function App() {
return ( return (
<NavigationContainer> <div className="App">
<Stack.Navigator> <header className="App-header">
<Stack.Screen name="Home" component={HomeScreen} /> <img src={willersDigitalLogo} className="App-logo" alt="logo" />
</Stack.Navigator> <h1> Das ist meine erste Änderung</h1>
</NavigationContainer> <p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment