帯のサイズ、位置を調整

This commit is contained in:
harukin-expo-dev-env 2024-09-03 14:02:56 +00:00
parent e9ae21b787
commit ab60a9a47f
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
import React, { FC, useEffect } from "react"; import React, { FC, useEffect } from "react";
import { Text } from "react-native"; import { Platform, Text } from "react-native";
import { useFavoriteStation } from "../../stateBox/useFavoriteStation"; import { useFavoriteStation } from "../../stateBox/useFavoriteStation";
type Props = { type Props = {
currentStation: any[]; currentStation: any[];
@ -30,7 +30,7 @@ export const AddressText: FC<Props> = (props) => {
fontSize: parseInt("10%"), fontSize: parseInt("10%"),
color: isMatsuyama ? "white" : "#005170", color: isMatsuyama ? "white" : "#005170",
position: "absolute", position: "absolute",
bottom: isMatsuyama ? "27%" : "0%", bottom: isMatsuyama ? Platform.OS === "ios"?"25.5%":"26.5%" : "0%",
textAlign: "center", textAlign: "center",
width: "100%", width: "100%",
fontWeight: "bold", fontWeight: "bold",

View File

@ -194,7 +194,7 @@ const styleSheet = {
bottom: "0%", bottom: "0%",
left: "0%", left: "0%",
width: "100%", width: "100%",
height: "27%", height: "26%",
backgroundColor: "#454545", backgroundColor: "#454545",
}, },
JRStyle: { JRStyle: {
@ -216,7 +216,7 @@ const styleSheet = {
下帯内容B: { 下帯内容B: {
position: "absolute", position: "absolute",
bottom: "0%", bottom: "0%",
height: "27%", height: "26%",
width: "100%", width: "100%",
alignItems: "center", alignItems: "center",
flexDirection: "column", flexDirection: "column",