httpで表示しているページがあったのをhttpsに変換するように変更

This commit is contained in:
harukin-OneMix4 2023-12-13 20:13:01 +09:00
parent fc091a2ae6
commit 644f066c96
2 changed files with 2 additions and 3 deletions

2
App.js
View File

@ -38,8 +38,8 @@ export default function App() {
useEffect(() => { useEffect(() => {
UpdateAsync(); UpdateAsync();
}, []); }, []);
const [favoriteStation, setFavoriteStation] = useState([]);
const [favoriteStation, setFavoriteStation] = useState([]);
useEffect(() => { useEffect(() => {
AS.getItem("favoriteStation") AS.getItem("favoriteStation")
.then((d) => { .then((d) => {

View File

@ -4,10 +4,9 @@ import { StatusBar, View, TouchableOpacity, Text } from "react-native";
import { WebView } from "react-native-webview"; import { WebView } from "react-native-webview";
export default ({ navigation: { navigate }, route }) => { export default ({ navigation: { navigate }, route }) => {
const { info, onExit = () => navigate("Apps") } = route.params; const { info, onExit = () => navigate("Apps") } = route.params;
return ( return (
<View style={styles.View}> <View style={styles.View}>
<WebView useWebKit source={{ uri: info }} /> <WebView useWebKit source={{ uri: info.replace("http://", "https://") }} />
<TouchableOpacity style={styles.touch} onPress={onExit}> <TouchableOpacity style={styles.touch} onPress={onExit}>
<View style={{ flex: 1 }} /> <View style={{ flex: 1 }} />
<Text style={{ fontSize: 25, fontWeight: "bold", color: "white" }}> <Text style={{ fontSize: 25, fontWeight: "bold", color: "white" }}>