import React, { Component, useRef } from "react"; import { StatusBar, Platform, View, TouchableOpacity, Text, } from "react-native"; import { WebView } from "react-native-webview"; import { Ionicons, MaterialCommunityIcons } from "@expo/vector-icons"; export default function TrainBase({ route, navigation }) { const { info, from } = route.params; const { navigate } = navigation; console.log(info); const webview = useRef(); const jss = `document.getElementById('Footer').style.display = 'none'; ${ Platform.OS == "ios" && `document.getElementsByTagName("html")[0].style['font-size'] = '11px';` }`; //const jss = `alert("ほげ")`; return ( {Platform.OS == "ios" && } {}} /> {from == "LED" && ( navigate("menu")} > 閉じる )} ); }