score:0
keep the ref of webview and initially don't load any url
<webview autosize={true} ref={(input) => { this.webview = input; }} src="data:text/plain" />
in your componentdidupdate() load url with extra headers
if (this.webview) {
this.webview.loadurl(url, {
extraheaders: ""
});
}
Source: stackoverflow.com
Related Query
- How to use <webview> methods inside a react component
- how to use a CDN inside a React component
- React - how to stub component methods that use property initializer syntax?
- How to inject React Component inside WebView (react-native-webview)?
- How can one use a polymer component inside a react component ? Is it possible?
- How to use React Context inside function of Class component
- How can I use React Router's withRouter HOC inside my own higher order component (HOC)?
- How to use a React component inside a Gatsby plugin?
- Refactoring React Class component to Functional, how to use action creator inside useEffect()
- How to use React Router Link component inside an Ant Design Tab component
- How to use Facebook Javascript SDK to login and force re-authentication with React Web and Typescript inside of a component
- How to use Switch case in React js functional component inside return efficiently by reusing?
- How to use useState inside a react functional component which is async
- How to use AND and OR statement inside the component while comparing in react component
- How can i use a jquery/html/css component inside my react page
- How to use data of an Async function inside a functional component to render HTML in React
- How to use switch statement inside a React component?
- How to use children with React Stateless Functional Component in TypeScript?
- How to mock React component methods with jest and enzyme
- How to use an array as option for react select component
- Making an HTML string from a React component in background, how to use the string by dangerouslySetInnerHTML in another React component
- How to pass props to component inside a React Navigation navigator?
- Unable to use Arrow functions inside React component class
- How to mock a custom hook inside of a React component you want to test?
- how to load React app / Lib inside ExtJs Component
- How to use material-ui IconMenu inside cell of React fixed-data-table
- How to use FormattedMessage inside an option tag in React 0.14?
- How to use Media Queries inside a React Styled Components Keyframe?
- how to import HTML file into React component and use it as a component?
- How to test methods inside functional component using enzyme as instance() returns null for shallow wrapper?
More Query from same tag
- How to display all the characters from a string in the component?
- How to unit test a React component that renders after fetch has finished?
- Firebase realtime data will not mount when page is refreshed
- trying to set the value of a field but it is not working
- React-Native Spotify SDK iOS: Dismiss auth window
- How to immediately update summary value, when column value in antd Table changes?
- REACT: Dynamical load multiple new HTML-Elements
- How do I have a horizontal line around title in React. or CSS?
- Getting pagination button value with react-bootstrap Pagination component
- Failing test (testing-library/react): Unable to find an element with the text:
- React structure for own utils files
- XMLHttpRequest ontimeout problem in react.js
- Remove console.logs with Webpack & Uglify
- How to use formValueSelector() of redux form to acces of the value of a button
- React child component not updating parents state, so second child is not noticing the changes
- How to add insert objects by id
- How to have multiple onClick events on a button wrapped in a GraphQL mutation component in React
- SymBrowser_ModifyWindowOpenWithTarget Browser Error
- Function gets not executed in Hook
- React Formik Material UI Autocomplete: How can I populate value inside of autocomplete from localStorage?
- React form with lot of children, parent state
- Merging values from an item in an array and an object in redux
- React: How to insert my own icon in a VerticalTimelineElement?
- Ternary operator: Expected an assignment or function call and instead saw an expression
- How does React-Router-4 check for additional (unnecessary) slashes "/" typed in manually?
- autofocus in react based on condition if else
- How do I manage UI state among subcomponents?
- ReactJS / Javascript - Trouble Rendering Components for Items in Object
- Disable Cypress from automatic scrolling
- Using variable in object method results in "Unknown Format"