Warning: Undefined array key "pathway" in /home/clients/160b20c93964292618c158d21ce27bf5/sites/tech.org-services.ch/wp-content/themes/Newspaper/functions.php on line 543
Monday, December 5, 2022
HomeiOS Developmentandroid - Methods to refresh the webview content material (react-native app)?

android – Methods to refresh the webview content material (react-native app)?

I’ve a react-native app (expo managed) and on this app I must open a few webviews ( which might be hosted on my web site url). The difficulty is that once I replace the content material on the web site, react-native webview nonetheless has the outdated web site’s content material.

For instance, react-native opens a webview web page with a title Library, I’ve up to date the title to Libraries and deployed the modifications to my web site, once I open the web site (although telephone/desktop) I see the title Libraries, however once I open the identical web page because the webview from the react-native app the title remains to be Library. If I delete and reinstall the react-native app then I see Libraries, I can not appear to determine what could trigger this challenge.

That is my code:

import React, {useRef, useEffect} from 'react';
import { WebView } from 'react-native-webview';

const webViewRef = useRef();

useEffect(() => {

}, []);

ref={(ref) => (webViewRef.present = ref)}
supply={{uri: "mywebsite"}}     

Any advise or assistance is enormously appreciated



Please enter your comment!
Please enter your name here

Most Popular

Recent Comments