Comments (7)
To display the base64 image (i.e. target: Camera.constants.CaptureTarget.memory) the code is roughly
<Image
source={{
isStatic: true,
uri: 'data:image/jpeg;base64,'+base64image,
}}
style={{height: 100, width:100}}
/>
where base64image is the string returned by the capture method.
To display the target: disk
image, the code is roughly
<Image
source={{uri: imageURI, isStatic:true}}
style={{width: 100, height: 100}}
/>
where imageURI is the string returned by the capture method.
You will probably need to play with the width/height, and resizeMode prop to get everything the way you want it.
from react-native-camera.
No nevermind, after reinstalling it works as expected
from react-native-camera.
That very helpful, thanks.
from react-native-camera.
Hi there,
This does not seem to work any longer on React Native 0.44 for Android. How can I achieve this (displaying a temp, or disk, image)?
from react-native-camera.
@Mayzie - what doesn't work? do you have an error or a stack trace from logcat?
from react-native-camera.
Can confirm this no longer works. No problems on a simulator, but does not work on a real device
from react-native-camera.
brilliant - thanks very much @rt2zz - saved me some head scratching..
from react-native-camera.
Related Issues (20)
- android:Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference HOT 1
- Can't Build APK HOT 2
- This package should be archive/remove, as it is not being maintained anymore.
- iPhone 14 Face Detection not Working HOT 6
- Cannot run android with react-native-camera HOT 2
- ViewPropTypes Issue resolved HOT 1
- without mic permission camera does not work
- _$$_REQUIRE(_dependencyMap[17], "react-native-camera").RNCamera
- Chunked recording 3
- Change import to avoid ViewPropTypes error on build
- Camera capturing failed
- minimumFocusDistance HOT 1
- deprecated proptypes
- How to recognize EAN_13+5 barcode?
- Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'., js engine: hermes
- Gradle issue HOT 2
- Create Panoramic Mode React Native
- react-native-camera video is not recording in ios
- react-native-camera not running with updated react-native version HOT 3
- Face comapare
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-camera.