Posts

Showing posts with the label webview

How to use camera roll image in webview react native?

How to use camera roll image in webview react native? I'm trying to capture image from a webview in react native and then display the same on my html page. Problem: I cannot access camera and save images from webview. Solution: I am capturing and saving the images using react-native-camera. Next Problem: I want to display this above saved image in my webview and then save it on a server. Note: My page is able to capture and save the data on server when i am opening it in a browser. I am facinf issues with webview in react native. mywebview.js file import React from 'react'; import { StyleSheet, View, WebView, ActivityIndicator } from 'react-native'; const HtmlPage = require('./index.html'); const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center' }, horizontal: { flexDirection: 'row', justifyContent: 'space-around', padding: 10 } }) class WebViewScreen ex...

Xamarin Forms - WebViewSource shows blank page

Image
Xamarin Forms - WebViewSource shows blank page I have index.html and Posts1 - 10.html inside a folder called CachedPosts inside Environment.GetFolderPath(Environment.SpecialFolder.Personal) . My goal is to load index.html which has href links to load Posts1 - 10.html . index.html Posts1 - 10.html CachedPosts Environment.GetFolderPath(Environment.SpecialFolder.Personal) index.html Posts1 - 10.html You may tell me to use the Assets folder, but.. Posts1 - 10.html & index.html are being saved programmatically. Posts1 - 10.html index.html C# Code : C# Code So my issue lies in the "else" area. index.html loads, but whenever I click on the href link inside index.html , it loads a blank page :/ index.html index.html index.html Code : index.html Code <html> <body> <a href="Posts1.html"><h2>Interesting Stuff 1</h2></a> <a href="Posts2.html"><h2>Interesting Stuff 2</h2></a> </body> </html...