Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
b06a3e8
dependencies OK
lorenzojkrl Dec 14, 2020
f80d78e
Login template
lorenzojkrl Dec 14, 2020
6e0d4bf
label component
Dec 14, 2020
2d4700e
Merge branch 'main' of https://github.com/lorenzojkrl/app into main
Dec 14, 2020
b4fac3f
remove Welcome
lorenzojkrl Dec 14, 2020
7052cf5
header rimosso
Dec 14, 2020
f74f09a
Login, Signup lables OK
lorenzojkrl Dec 14, 2020
1f710fb
rimozione header 2.0
Dec 14, 2020
12c4a56
Merge branch 'main' of https://github.com/lorenzojkrl/app into main
Dec 14, 2020
4bb24d3
creazione brench
Dec 14, 2020
802a024
prova
Dec 14, 2020
89f373c
aggiunto componente input
Dec 14, 2020
2862dd5
button component
alfonsodelorenzo Dec 14, 2020
b73d437
aggiunto input bas
Dec 14, 2020
647f5ec
color yellow on colors.js
alfonsodelorenzo Dec 14, 2020
43a4747
agiunto header
Dec 14, 2020
5af6716
Merge branch 'main' of https://github.com/lorenzojkrl/app into main
Dec 14, 2020
cdab79f
Merge branch 'main' into alessandroCarnelli
Dec 14, 2020
3256b14
provaprova
Dec 14, 2020
3926f66
signUp assemblato
Dec 14, 2020
a74eff6
Merge branch 'alessandroCarnelli' of https://github.com/lorenzojkrl/a…
Dec 14, 2020
299e6cb
OK
lorenzojkrl Dec 14, 2020
e647d4d
Ultimo
lorenzojkrl Dec 14, 2020
8d5a70c
aggiunto greeting screen
Dec 14, 2020
df14a0f
Merge branch 'main' of https://github.com/lorenzojkrl/app into main
Dec 14, 2020
80b1c74
prova push
Dec 14, 2020
8dc6d2a
android OK
lorenzojkrl Dec 14, 2020
c365480
Merge branch 'main' of github.com:lorenzojkrl/app into main
lorenzojkrl Dec 14, 2020
fecb4be
ho dato una sistemata parziale agli stili
Dec 14, 2020
89d8bd2
Merge branch 'main' of https://github.com/lorenzojkrl/app into main
Dec 14, 2020
03b2fdf
aggiunto componente Paragraph
Dec 14, 2020
6329acc
update
alfonsodelorenzo Dec 15, 2020
8caa44d
update button component
alfonsodelorenzo Dec 15, 2020
7354e56
nav to signup OK
lorenzojkrl Dec 15, 2020
45c4021
Login with Form
lorenzojkrl Dec 15, 2020
3ec589f
api to be fixed
lorenzojkrl Dec 15, 2020
86dd7ae
apis in config
lorenzojkrl Dec 15, 2020
73eef7e
last comment
lorenzojkrl Dec 15, 2020
9482632
access to main OK
lorenzojkrl Dec 15, 2020
0a62fc7
sample GET
lorenzojkrl Dec 15, 2020
f7201d0
modifiche
alfonsodelorenzo Dec 15, 2020
158023a
add NavigationTab, Alert in component and TabIcons on config
alfonsodelorenzo Dec 15, 2020
edfc70d
comment
lorenzojkrl Dec 16, 2020
7515516
comment
lorenzojkrl Dec 16, 2020
761b4e4
update
alfonsodelorenzo Dec 16, 2020
dd971d3
starting point
lorenzojkrl Dec 16, 2020
f17d3d2
comment
lorenzojkrl Dec 16, 2020
84baee1
cardsScreen
lorenzojkrl Dec 16, 2020
b1a95d5
main OK
lorenzojkrl Dec 16, 2020
f4e7168
update
alfonsodelorenzo Dec 16, 2020
23dcea1
update
alfonsodelorenzo Dec 16, 2020
dcd4f22
update navigationTab
alfonsodelorenzo Dec 16, 2020
5e68e44
Tab Nav
lorenzojkrl Dec 16, 2020
f9066f6
Profile Screen GuyBrush
lorenzojkrl Dec 16, 2020
6c66fea
update
alfonsodelorenzo Dec 16, 2020
ccd7748
Cards Listed
lorenzojkrl Dec 16, 2020
5231646
resolve merge conflict
alfonsodelorenzo Dec 16, 2020
1eafda3
last update
alfonsodelorenzo Dec 17, 2020
0b6c097
last update
alfonsodelorenzo Dec 17, 2020
7fdc1cb
aggiunto loading
Dec 17, 2020
15fda09
StackNav for Cards
lorenzojkrl Dec 17, 2020
c775e5d
Merge branch 'main' of https://github.com/lorenzojkrl/app into Alfons…
alfonsodelorenzo Dec 17, 2020
b8a47c8
CardProfile
lorenzojkrl Dec 17, 2020
6d74a71
Merge branch 'main' of https://github.com/lorenzojkrl/app into Alfons…
alfonsodelorenzo Dec 17, 2020
fd8e18b
aggiunto SuccessfulTransfer screen
Dec 17, 2020
fdc07d4
Exchange Screen
lorenzojkrl Dec 17, 2020
b1c74cf
update
alfonsodelorenzo Dec 17, 2020
c37c902
Merge branch 'main' of https://github.com/lorenzojkrl/app into Alfons…
alfonsodelorenzo Dec 17, 2020
75a2f9b
Merge branch 'main' of github.com:lorenzojkrl/app into main
lorenzojkrl Dec 17, 2020
7d929e1
immagine gioco su CardItems e CardProfile
alfonsodelorenzo Dec 17, 2020
b3731f2
modifiche su Alert
alfonsodelorenzo Dec 17, 2020
7c4c0b1
correzzioni codice
alfonsodelorenzo Dec 17, 2020
ba3c4fb
sistemato QR code scanner
Dec 18, 2020
95f9a2d
ultime modifiche
alfonsodelorenzo Dec 18, 2020
8b37da8
immagine gioco su cardItems e Cardprofile
alfonsodelorenzo Dec 18, 2020
41ef99b
comment
lorenzojkrl Dec 18, 2020
c92fd59
modifiche cardprofile e carditem
alfonsodelorenzo Dec 18, 2020
d3da86a
Exchange OK
lorenzojkrl Dec 18, 2020
561808c
update
alfonsodelorenzo Dec 18, 2020
1c9b1e1
exchange funziona
alfonsodelorenzo Dec 18, 2020
6d0910c
Final
lorenzojkrl Dec 18, 2020
b05bfc7
aggiornato card counter
alfonsodelorenzo Dec 18, 2020
4f6a153
aggiornato card counter
alfonsodelorenzo Dec 18, 2020
2441f0b
alert login
alfonsodelorenzo Dec 19, 2020
798a003
alert login OK
alfonsodelorenzo Dec 19, 2020
6380b03
alert login OK
alfonsodelorenzo Dec 19, 2020
2fcff92
alert login OK
alfonsodelorenzo Dec 19, 2020
cbfc826
check verde
Dec 19, 2020
5fab17e
Merge branch 'AlfonsoDeLorenzo' of https://github.com/lorenzojkrl/app…
alfonsodelorenzo Dec 19, 2020
b479d87
Merge branch 'main' of https://github.com/lorenzojkrl/app into alessa…
Dec 19, 2020
665f225
alert signUp + caricamento lista
Dec 19, 2020
75c3537
update
alfonsodelorenzo Dec 19, 2020
9649013
update
alfonsodelorenzo Dec 19, 2020
e06e8d6
aggiunta scrollView
Dec 19, 2020
7dffa7f
aggiustati stili cardProfile
Dec 19, 2020
2a28dcf
centrata immagine
Dec 19, 2020
e71841c
stile alert
alfonsodelorenzo Dec 19, 2020
37ea112
Merge branch 'main' of https://github.com/lorenzojkrl/app into Alfons…
alfonsodelorenzo Dec 19, 2020
96758f7
modificato stile alert e statusBar
alfonsodelorenzo Dec 19, 2020
703d304
modifica condizione login e signUp per alert
alfonsodelorenzo Dec 19, 2020
cf8af45
modificato stile alert e statusBar
alfonsodelorenzo Dec 19, 2020
51e3dc7
header
Dec 20, 2020
b8a4d70
Merge branch 'main' of https://github.com/lorenzojkrl/app into alessa…
Dec 20, 2020
2a36ae1
Auto stash before merge of "alessandroCarnelli" and "origin/alessandr…
Dec 20, 2020
57815ab
normalize header
Dec 20, 2020
4576b50
header e style update
Dec 20, 2020
9b13e3b
header completato
Dec 20, 2020
466f120
implementato nuovo header
Dec 20, 2020
88ff0ab
correzione
Dec 20, 2020
9920101
migliorati stili header e tab
Dec 20, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions .idea/gruppo-1-app.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions App.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import { StatusBar } from 'expo-status-bar'
import React from 'react'
import { StyleSheet, Text, View } from 'react-native'
import React from 'react';
import { StatusBar } from 'expo-status-bar';

import Providers from './context/Providers'
import Screens from './screens/Screens'

export default function App() {

return (
<Providers>
<Screens />
<StatusBar style="light" backgroundColor="black" />
</Providers>
)
}
Binary file added assets/Guybrush_Threepwood.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logo_minecraft.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logo_pokemon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logo_supermario.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
90 changes: 90 additions & 0 deletions components/Alert.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
import React, { useRef, useEffect } from 'react'
import { Animated, StyleSheet, View, Text } from 'react-native'
import Button from './Button'
import colors from '../config/colors'
import spaces from '../config/spaces'


export default function Alert({ open, onClose, message = null, typology }) {

// const animation = useRef(new Animated.Value(0)).current

// useEffect(() => {
// Animated.timing(animation, {
// toValue: open ? 1 : 0,
// duration: 500,
// useNativeDriver: true
// }).start()
// }, [open])

let typologyContainerStyle = typology === "danger" ? styles.containerDanger : styles.containerSuccess

return (
// <Animated.View style={[styles.container, {
// transform: [{
// scale: animation.interpolate({
// inputRange: [0, 1],
// outputRange: [0, 1]
// })
// }],
// }]}>
<>
<View style={[styles.containerInternal, typologyContainerStyle]}>
{
message && <Text style={styles.message}>{message}</Text>
}


onClose&& (
<Button
style={styles.button}
color={colors.black}
onPress={onClose}
name={"CHIUDI"}>
</Button>
)

</View>
</>
// </Animated.View>
)
}

const styles = StyleSheet.create({
container: {
paddingHorizontal: spaces.containerSpace,
width: '100%',
position: 'absolute',
top: 0,
left: 0,
zIndex: 1,
paddingHorizontal: spaces.containerSpace,
paddingTop: 10
},
containerInternal: {
backgroundColor: 'red',
padding: 15,
display: 'flex',
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
borderRadius: 15,
width: '100%'
},
containerSuccess: {
backgroundColor: 'green'
},
containerDanger: {
backgroundColor: 'red'
},
message: {
color: 'red',
fontWeight: 'bold',
fontSize: 16,
paddingRight: 15,
flexBasis: '70%'
},
button: {
flexBasis: '30%'
}
})
28 changes: 25 additions & 3 deletions components/Button.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
import React from "react";
import React from 'react'
import { TouchableOpacity, Text } from 'react-native'

export default function Button(){
return <></>
export default function Button(props) {
const textStyle = {
fontWeight: 'bold',
textAlign: 'center',
color: 'white',
}
const btnStyle = {
width: '50%',
borderColor: 'orange',
backgroundColor: 'orange',
borderWidth: 3,
borderRadius: 50,
padding: 10,
marginVertical: 20,

}
return (
<TouchableOpacity style={btnStyle} onPress={props.submit} disabled={props.disabled}>
<Text style={textStyle}>
{props.name}
</Text>
</TouchableOpacity>
)
}
99 changes: 99 additions & 0 deletions components/CardItem.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
import React from 'react';
import { Text, View, StyleSheet, TouchableOpacity, Image, Dimensions, } from 'react-native';
import { EvilIcons } from '@expo/vector-icons';
// import { rootNavigation } from '../utility/navigation.js'

const CardItem = ({ data }) => {
const { game, name } = data;
return (



<View style={{ width: '100%', flexDirection: 'row', justifyContent: 'space-between', backgroundColor: 'white', marginBottom: 10, borderRadius: 10, overflow: 'hidden' }} >
<View style={{ flexDirection: 'row' }} >
<View style={styles.img}>
<Image
style={styles.logoGame}
source={(game === "minecraft")
? require('../assets/logo_minecraft.png')
: (game === "pokemon")
? require('../assets/logo_pokemon.png')
: (game === "supermario")
? require('../assets/logo_supermario.jpeg')
: require('../assets/Guybrush_Threepwood.png')} />
</View>
<View style={styles.text}>
<Text>
Name: {name}
</Text>
<Text>
Game: {game}
</Text>
</View>
</View>


<View style={styles.btnContainer}>
<EvilIcons name="arrow-right" size={40} color="black" />
</View>
</View >
)
};

export default CardItem;

const styles = StyleSheet.create({
card: {
flexDirection: 'row',
justifyContent: 'space-between',
marginVertical: 5,
borderRadius: 2,
backgroundColor: 'white'
// borderWidth: 2,
// borderColor: 'blue',
},
img: {
width: 100,
height: 100,
borderColor: 'black',
borderWidth: 0,
justifyContent: 'center',
alignItems: 'center',
},
text: {
height: 100,
padding: 10,
// borderWidth: 1,
// borderColor: 'red',
justifyContent: 'center',
paddingLeft: 20,
},
btnContainer: {

height: 100,
// borderWidth: 1,
// borderColor: 'red',
justifyContent: 'center',
alignItems: 'center',
paddingRight: 20,

},
logoGame: {
width: '80%',
height: '80%',
justifyContent: 'center',
alignItems: 'center',
}
})

/*
<Image
style={{
width: 95,
height: 95,
justifyContent: 'center',
alignItems: 'center'}}
source={{

}}/>
*/
Loading