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(() => {
UpdateAsync();
}, []);
const [favoriteStation, setFavoriteStation] = useState([]);
useEffect(() => {
AS.getItem("favoriteStation")
.then((d) => {

View File

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