diff --git a/components/AllTrainDiagramView.js b/components/AllTrainDiagramView.js index b056230..66e422a 100644 --- a/components/AllTrainDiagramView.js +++ b/components/AllTrainDiagramView.js @@ -5,6 +5,7 @@ import { TouchableOpacity, Linking, ScrollView, + FlatList, } from "react-native"; import MapView, { Marker } from "react-native-maps"; import { MaterialCommunityIcons } from "@expo/vector-icons"; @@ -58,12 +59,14 @@ export default function AllTrainDiagramView({ navigation: { navigate } }) { }; return ( - - {keyList && - keyList.map((key) => ( - - ))} - + ( + + )} + keyExtractor={(item) => item} + initialNumToRender={100} + />