httpで表示しているページがあったのをhttpsに変換するように変更
This commit is contained in:
parent
fc091a2ae6
commit
644f066c96
2
App.js
2
App.js
@ -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) => {
|
||||||
|
3
howto.js
3
howto.js
@ -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" }}>
|
||||||
|
Loading…
Reference in New Issue
Block a user