From 746c996cba22de5e0db7af0340c2cc7b65946923 Mon Sep 17 00:00:00 2001 From: harukin-DeskMini Date: Mon, 30 Jan 2023 03:02:00 +0900 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E3=82=B3=E3=83=B3=E3=83=9D=E3=83=BC?= =?UTF-8?q?=E3=83=8D=E3=83=B3=E3=83=88=E3=82=92component=E3=81=8B=E3=82=89?= =?UTF-8?q?child=E3=81=B8=E7=A7=BB=E5=8B=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.js | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/App.js b/App.js index d17f794..58bf0f5 100644 --- a/App.js +++ b/App.js @@ -10,10 +10,10 @@ import { Platform, UIManager } from "react-native"; import { UpdateAsync } from "./UpdateAsync.js"; import { getStationList2 } from "./lib/getStationList2"; import Apps from "./Apps"; -import tndView from "./ndView"; +import TNDView from "./ndView"; import TrainBase from "./trainbaseview"; import HowTo from "./howto"; -import menu from "./menu"; +import Menu from "./menu"; import News from "./components/news.js"; import Setting from "./components/settings.js"; import TrainMenu from "./components/trainMenu.js"; @@ -35,40 +35,43 @@ export default function App() { + > + {(props) => } + + > + {(props) => } + + > + {(props) => } + ); } -const initIcon = (name, type, props) => { +const initIcon = (name, type) => { switch (type) { case "Ionicons": return ({ focused, color, size }) => ( @@ -161,22 +164,24 @@ const Top = ({ navigation }) => { ); }; -function menuPage() { +function MenuPage() { return ( - + > + {(props) => } + + + {(props) => } + + > + {(props) => } + ); }