ふぁぼ駅を表示するように変更(現在地が表示されない)

This commit is contained in:
harukin-DeskMini
2023-02-01 15:25:33 +09:00
parent f580e319cf
commit 12f23bef16
4 changed files with 52 additions and 21 deletions

View File

@@ -5,6 +5,10 @@ import ActionSheet from "react-native-actions-sheet";
import Sign from "../../components/駅名表/Sign";
import { TicketBox } from "../atom/TicketBox";
import {
widthPercentageToDP as wp,
heightPercentageToDP as hp,
} from "react-native-responsive-screen";
export const StationDeteilView = (props) => {
const {
@@ -44,13 +48,20 @@ export const StationDeteilView = (props) => {
</View>
<View>
{currentStation && (
<Sign
currentStation={currentStation}
originalStationList={originalStationList}
favoriteStation={favoriteStation}
setFavoriteStation={setFavoriteStation}
oP={() => Linking.openURL(currentStation[0].StationTimeTable)}
/>
<View
style={{
margin: 10,
marginHorizontal: wp("10%"),
}}
>
<Sign
currentStation={currentStation}
originalStationList={originalStationList}
favoriteStation={favoriteStation}
setFavoriteStation={setFavoriteStation}
oP={() => Linking.openURL(currentStation[0].StationTimeTable)}
/>
</View>
)}
{currentStation && (
<View style={{ flexDirection: "row" }}>

View File

@@ -40,7 +40,6 @@ export default function Sign(props) {
return false;
}
});
console.log(isFavorite.length);
setTestButtonStatus(isFavorite.length != 0);
}, [favoriteStation, currentStation]);
@@ -260,8 +259,6 @@ const styleSheet = {
height: (wp("80%") / 20) * 9,
borderColor: "#2E94BB",
borderWidth: 1,
margin: 10,
marginHorizontal: wp("10%"),
backgroundColor: "white",
},
下帯: {