import React from 'react'; import {ScrollView, StyleSheet, Text, View} from 'react-native'; import {RouteProp} from '@react-navigation/native'; import {RootStackParamList} from "../navigation/navigationTypes"; import TypeTacticsInfoList from "../components/TypeTacticsInfoList" type MoveDetailScreenRouteProp = RouteProp; type Props = { route: MoveDetailScreenRouteProp; }; const MoveDetailScreen = ({route}: Props) => { const {move} = route.params; return ( {move.name} Name: {move.name} Category: {move.category} Power: {move.power} Accuracy: {move.accuracy} Type: {move.type.name} ); }; const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#FFFFFF', padding: 20, }, title: { fontSize: 24, fontWeight: 'bold', }, list: { backgroundColor: '#F0F0F0', borderRadius: 5, padding: 10, marginBottom: 10, }, typeListsContainer: { flexDirection: 'row', justifyContent: 'space-between', }, }); export default MoveDetailScreen;