29 lines
820 B
JavaScript
29 lines
820 B
JavaScript
import React from "react";
|
|
import { View, Platform } from "react-native";
|
|
import { WebView } from "react-native-webview";
|
|
import Constants from "expo-constants";
|
|
export default function tndView() {
|
|
return (
|
|
<View
|
|
style={{
|
|
backgroundColor: "#309AC3",
|
|
height: "100%",
|
|
paddingTop: Platform.OS == "ios" ? Constants.statusBarHeight : 0,
|
|
}}
|
|
>
|
|
<WebView
|
|
useWebKit={true}
|
|
source={{ uri: "https://www.jr-shikoku.co.jp/info/" }}
|
|
originWhitelist={["https://www.jr-shikoku.co.jp"]}
|
|
mixedContentMode={"compatibility"}
|
|
javaScriptEnabled={true}
|
|
injectedJavaScript={jsa}
|
|
/>
|
|
</View>
|
|
);
|
|
}
|
|
const jsa = `
|
|
document.querySelector('.sitettl').style.display = 'none';
|
|
document.querySelector('.attention').style.display = 'none';
|
|
`;
|