|
|
@ -35,7 +35,10 @@ const MoveDetailScreen = ({ navigation, route }: Props) => {
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<ScrollView style={styles.container}>
|
|
|
|
<ScrollView style={styles.container}>
|
|
|
|
<Button title="Edit Move" onPress={() => navigation.navigate(MOVE_FORM, { move: move })}/>
|
|
|
|
<Button
|
|
|
|
|
|
|
|
title="Edit Move"
|
|
|
|
|
|
|
|
color={styles.updateButton.backgroundColor}
|
|
|
|
|
|
|
|
onPress={() => navigation.navigate(MOVE_FORM, { move: move })}/>
|
|
|
|
<Text style={styles.title}>Name: {move?.name}</Text>
|
|
|
|
<Text style={styles.title}>Name: {move?.name}</Text>
|
|
|
|
<Text style={styles.detail}>Category: {move?.category}</Text>
|
|
|
|
<Text style={styles.detail}>Category: {move?.category}</Text>
|
|
|
|
<Text style={styles.detail}>Power: {move?.power}</Text>
|
|
|
|
<Text style={styles.detail}>Power: {move?.power}</Text>
|
|
|
@ -50,6 +53,9 @@ const MoveDetailScreen = ({ navigation, route }: Props) => {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const styles = StyleSheet.create({
|
|
|
|
const styles = StyleSheet.create({
|
|
|
|
|
|
|
|
updateButton: {
|
|
|
|
|
|
|
|
backgroundColor: '#BA22DA',
|
|
|
|
|
|
|
|
},
|
|
|
|
container: {
|
|
|
|
container: {
|
|
|
|
flex: 1,
|
|
|
|
flex: 1,
|
|
|
|
backgroundColor: '#FFFFFF',
|
|
|
|
backgroundColor: '#FFFFFF',
|
|
|
|