Questions tagged [react-native-webview]
406 questions
4
votes
0 answers
Reader View React-Native-Webview
How can I force the react-native-webview to render the safari reader view by default on this package: https://github.com/react-native-webview/react-native-webview?

derekbailinkedin
- 61
- 1
4
votes
3 answers
react-native-webview Typescript error: 'WebView' cannot be used as a JSX component
I am trying to set up a simple React Native app using Expo with TypeScript that shows a WebView. My App.tsx file contains the following:
import Constants from 'expo-constants';
import { StyleSheet } from 'react-native';
import { WebView } from…

Julian Lachniet
- 223
- 4
- 25
4
votes
0 answers
4
votes
2 answers
How to make React Native Webview auto height
I need to render some HTML code in my React Native app. But it seems like the WebView can't be set to auto height. Please help me with this problem. This is my code.

Manas Sanas
- 342
- 9
- 18
4
votes
1 answer
React-Native, Stripe card element not displaying for live API key
In my react-native project i have used react-native-webview and stripe js (https://js.stripe.com/v3)
Using stripe js i am creating card element to collect card details
var elements = stripe.elements()
var card =…

nitheeshsalian
- 93
- 12
4
votes
0 answers
can not install react-native-webiew pods in react-native-tvos targated app
Version: "react-native": "npm:react-native-tvos@0.61.5-0",
When I want to use some library that is supported by iOS but not tvOS, for example react-native-webview, it gives error like 'invariant violation: requireNativeComponent: "RNCWebView" was…

D. vekariya
- 41
- 1
4
votes
2 answers
react-native-webview why is the goBack() method not working?
I have a simple React Native project in Expo, it launches a website using react-native-webview.
Here is the source code:
import React from "react";
import { StyleSheet, View, SafeAreaView } from "react-native";
import { AntDesign } from…

Gary
- 1,086
- 2
- 13
- 39
4
votes
2 answers
react-native-webview how to inject javascript?
On Android, I had been using expo-stripe-checkout for payments on an Expo managed app. Everything was working fine until I updated to the newest version of expo and react-native. Now, none of the callbacks, like onClose and onPaymentSuccess are…

gwalshington
- 1,418
- 2
- 30
- 60
4
votes
0 answers
Render screen after JavaScript has been injected in React Native WebView
I'm using the injectedJavaScript prop with a React Native WebView. Currently, my screen is rendered, then the JavaScript is injected, then the screen is re-rendered.
Is there a way to render my screen after my JavaScript code has been injected?

Ali
- 484
- 3
- 5
- 16
4
votes
0 answers
How to listen a click event triggered inside webapp on react-native webview
I want to listen a click event triggered inside a webapp , this webapp loads in react-native webview.
So need to listen the click event and then run an async function in react-native.
My use-case is to download a file once save button clicked (This…

Vasant
- 101
- 2
- 10
4
votes
1 answer
Automatically Authenticate with Web Application from React Native webView
I'm building an app using react native , in that app I want to access web application using react-native-webview. Each time requires sign in to log in to web application. For authentication im using amplify . Is it possible to connect the web…

reckinam deva
- 315
- 1
- 2
- 6
4
votes
2 answers
WebView (react-native-webview) getting error code -1 in Expo SDK36
My Expo App's WebViewScreen Code:
import React from 'react';
import { WebView } from 'react-native-webview';
export default WebViewScreen = () => (

FAQi
- 865
- 1
- 13
- 21
4
votes
1 answer
What is the difference between incognito and cacheEnabled props in React Native WebView?
First of all, I have a basic level of English so I hope that you understand.
What is the difference between incognito and cacheEnabled props in React Native WebView? react-native-webview doc don't have a detailed explanation.
incognito
Does not…

pedrohpinho
- 63
- 1
- 4
4
votes
0 answers
How can I enable webview background audio play in react native (ios)?
My app plays my content(usually youtube.com video page) with react-native-webview. I want to make the content still played when my app is in background. Now the app just stop playing sound when it became background.
I enabled capability :
This is…

cereme
- 280
- 1
- 18
4
votes
1 answer
React-native-webview: net::ERR_FAILED
Bug description:
The first time I open my app the website loads correctly in the WebView. Then I go to the homescreen and after a while I return to the app and gets the following error:
Website not available
The website at…

Steffen Christensen
- 673
- 1
- 6
- 15