Posts

Showing posts with the label react-native-android

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...

React-native : Android Debug build does't loads image assets from the react-native assets folder

React-native : Android Debug build does't loads image assets from the react-native assets folder For Testing and sharing purpose , I created an apk using the following code in Terminal react-native bundle --dev false --platform android --entry-file index.js --bundle-output ./android/app/build/intermediates/assets/debug/index.android.bundle --assets-dest ./android/app/build/intermediates/res/merged/debugScanning and create apk using Create debug build: cd android ./gradlew assembleDebug This above solution is from stackoverflow that successfully created a good apk file, But, While i am testing the apk, it doesn't shows the icons from the folder "react-native-project-name/assets" only shows white space instead of icons. tested some solutions but noting resolves this issue. version react-native-cli: 2.0.1 react-native: 0.55.4 By clicking "Post Your Answer", you acknowledge that you have read o...

What is metro bundler in react-native?

What is metro bundler in react-native? I am learning react-native. I don't find proper documentation for metro bundler. So, I have few questions on it. As the name suggests it creates a bundle. By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.