webview not work in ios

This code works perfect on android but not in IOS

Expo CLI 3.9.1 environment info:
System:
OS: macOS 10.15.1
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 12.8.1 - /usr/local/bin/node
Yarn: 1.19.2 - /usr/local/bin/yarn
npm: 6.10.2 - /usr/local/bin/npm
IDEs:
Xcode: 11.2.1/11B500 - /usr/bin/xcodebuild
npmPackages:
@storybook/react-native: ^5.2.8 => 5.2.8
expo: ^35.0.0 => 35.0.1
react: 16.8.3 => 16.8.3
react-native: https://github.com/expo/react-native/archive/sdk-35.0.0.tar.gz => 0.59.8
react-navigation: ^3.12.1 => 3.13.0
npmGlobalPackages:
expo-cli: 3.9.1

import React, { Component } from ‘react’;
import { Text, View, StyleSheet, WebView } from ‘react-native’;
import { Constants } from ‘expo’;

export default class App extends Component {

render() {
return (
<WebView
originWhitelist={[‘*’]}
source={{ uri: ‘https://mispichos.com’ }}
style={{ marginTop: 140,backgroundColor:‘red’ }}
/>
);

}
}

I solved the problem.

When you use expo install react-native-webview installs the 7.0.5 obsolote for ios so I have to upgrade manual to 7.6.0 and works perfectly

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.