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) => } + ); }