Questions tagged [react-native-webview]
406 questions
26
votes
3 answers
react-native-webview : For iOS text too small
I have used react-native-webview for rendering HTML text. But text is too small in iOS while in android it is perfect.
Here are lines of code :
import { WebView } from "react-native-webview";
render() {

Payal Maniyar
- 4,293
- 3
- 25
- 51
23
votes
13 answers
Invariant Violation: requireNativeComponent: "RNCWebView" was not found in the UIManager
Hello friends i got this error after linking react-native-webview to my project
Invariant Violation: requireNativeComponent: "RNCWebView" was not found in the UIManager.
This error is located at:
in RNCWebView (at…

Sky Sakthi
- 402
- 1
- 4
- 12
19
votes
8 answers
crypto.getRandomValues() not supported
I'm getting this error with npm react-native-webview@9.0.1 when I try to generate a QR code with react-native-qrcode-generator
I'm using react-native with an expo managed workflow. And the thing is it works on iOS, and i only get the error on…

jsnid00
- 528
- 1
- 4
- 8
12
votes
2 answers
How to use PostMessage in a React Native webview?
I'm trying to use the postmessage to a page opened in a webview inside a React Native App. I tried many times, but still wasn't able to send it.
I can listen to messages from the webpage normally. I just can't send anything back.
I'm currently using…

Felipe César
- 1,234
- 2
- 16
- 34
12
votes
1 answer
How to keep last web session active in react-native-webview?
I am working on one app, In which I need to keep users last web-session active in react-native-webview.
Here is a required work-flow.
My app is only have one WebView, Where there is fixed url is loading.
User will open app & login to that…

Vishal Sharma
- 1,733
- 2
- 12
- 32
10
votes
2 answers
React Native WebView App not exit on pressing back button
React Native WebView App not exit on pressing back button after setting Go back functionality on back button pressed. I want go back functionality on pressing back button when webview is not on home page and when webview is on home page then exit…

beginner
- 331
- 2
- 14
10
votes
3 answers
React Native - Null pointer dereference after navigating to/from a page containing multiple tweets embedded inside their own WebViews
The app I'm currently building for work is mainly focused around displaying articles. Some of them contain Twitter embeds (on the web version) and since the API is shared by both of our apps I also receive the embed as HTML. Whenever I try to…

emeraldsanto
- 4,330
- 1
- 12
- 25
9
votes
7 answers
Execution failed for task ':react-native-webview:compileDebugKotlin'
After upgrading react native from 0.61.2 to 0.68.2 with RN update helper, gradle cant build app. Getting this error
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task…

Vl Hayrapetyan
- 93
- 1
- 1
- 3
9
votes
4 answers
React Native WebView for Android not displaying PDF and Word files
I am developing a new project about publishing Personal CV.
I need to show users' CVs in the application.
My standard WebView code is below and working well on iOS.
import * as React from 'react';
import { WebView } from 'react-native';
export…

Hasan Rıza Uzuner
- 445
- 1
- 7
- 21
9
votes
1 answer
How can get cookie which is set in webview in react-native?
I am trying to retrieve user entered zipcode which is added to the cookie in the webview. How do I get it?
I have tried react-native-cookies which is getting an empty object.
import CookieManager from 'react-native-cookies';
componentWillMount() {
…

Subhendu Kundu
- 3,618
- 6
- 26
- 57
8
votes
7 answers
react-native-webview crashes application when invoked
I am using react-native-webview library to load webpage, it works fine in debuging, but when I create release build. And click on the tab to load webview , application crashes. following is the error. I have attached error trace as well in the end.…

Muhammad Ehtesham Anwar
- 141
- 1
- 3
- 13
8
votes
1 answer
react-native-webview load a local HTML file but got plain text
I try to load a HTML file depends on someother .js file.
So I write code like this, but got plain text in webview.
render = () => {
let source;
if (__DEV__) {
source = require('./vendor/Editor/index.html');
} else {
source =
…

Desmond Chen
- 95
- 1
- 4
6
votes
1 answer
TypeError: Cannot read property 'isFileUploadSupported' of null
I am trying to render a HTML snippet in my React-Native app using react-native-webview
, I also tried react-native-render-html, but in this CSS is not work that much.
This is my Error Stack
ERROR TypeError: Cannot read property…

Saurabh D Vyas
- 143
- 1
- 1
- 7
6
votes
3 answers
React Native Webview social authentication
I am trying to build an iOs mobile application for a website with webview in React Native.
I am using the library ('react-native-webview') in the expo-cli project. Everything seems so good so far. And maybe it is because I am new to webviews but I…

Falay
- 63
- 1
- 5
6
votes
2 answers