From fc50a2c827ad23424f6d67e48a3b731b6b667eb1 Mon Sep 17 00:00:00 2001 From: harukin-expo-dev-env Date: Mon, 6 Jan 2025 11:45:29 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=95=E3=82=A9=E3=83=B3=E3=83=88=E5=AE=A3?= =?UTF-8?q?=E8=A8=80=E3=82=BF=E3=82=A4=E3=83=9F=E3=83=B3=E3=82=B0=E3=81=AE?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Apps.js | 5 +++++ components/ActionSheetComponents/EachTrainInfoCore.js | 7 ------- .../ActionSheetComponents/EachTrainInfoCore/HeaderText.tsx | 1 - 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/Apps.js b/Apps.js index cc526e0..8d7c8b6 100644 --- a/Apps.js +++ b/Apps.js @@ -2,6 +2,7 @@ import React from "react"; import { NavigationContainer } from "@react-navigation/native"; import { createBottomTabNavigator } from "@react-navigation/bottom-tabs"; import { Platform } from "react-native"; +import { useFonts } from "expo-font"; import TNDView from "./ndView"; import { initIcon } from "./lib/initIcon"; import { Top } from "./Top"; @@ -24,6 +25,10 @@ export function AppContainer() { tabBarBadgeStyle: style, }, }); + const [fontLoaded, error] = useFonts({ + "JR-Nishi": require("./assets/fonts/西日本方向幕ロゴ.otf"), + "Zou": require("./assets/fonts/DelaGothicOne-Regular.ttf"), + }); return ( { - const [fontLoaded, error] = useFonts({ - "JR-Nishi": require("../../assets/fonts/西日本方向幕ロゴ.otf"), - "Zou": require("../../assets/fonts/DelaGothicOne-Regular.ttf"), - }); // const [actionSheetHorizonalScroll, setActionSheetHorizonalScroll] = useState(false); const { currentTrain } = useCurrentTrain(); const { originalStationList, stationList } = useStationList(); @@ -411,7 +406,6 @@ export const EachTrainInfoCore = ({ tailStation={tailStation} navigate={navigate} from={from} - fontLoaded={fontLoaded} /> ) diff --git a/components/ActionSheetComponents/EachTrainInfoCore/HeaderText.tsx b/components/ActionSheetComponents/EachTrainInfoCore/HeaderText.tsx index 6b299b0..e4d8a51 100644 --- a/components/ActionSheetComponents/EachTrainInfoCore/HeaderText.tsx +++ b/components/ActionSheetComponents/EachTrainInfoCore/HeaderText.tsx @@ -35,7 +35,6 @@ export const HeaderText: FC = ({ tailStation, navigate, from, - fontLoaded, }) => { const { limited, trainNum } = data;