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(() => {
|
||||
UpdateAsync();
|
||||
}, []);
|
||||
|
||||
const [favoriteStation, setFavoriteStation] = useState([]);
|
||||
|
||||
useEffect(() => {
|
||||
AS.getItem("favoriteStation")
|
||||
.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";
|
||||
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" }}>
|
||||
|
Loading…
Reference in New Issue
Block a user