Comments (16)
@gran33 sorry wrong issue.
from react-native-camera-kit.
@gran33 so you can do something like that:
<CameraKitCamera
ref={(cam) => {
window.camera = cam;
}}
style={{
width: Dimensions.get('window').width,
height: Dimensions.get('window').width
}}
cameraOptions={{
flashMode: 'off', // on/off/auto(default)
focusMode: 'on', // off/on(default)
zoomMode: 'on', // off/on(default)
ratioOverlay: '1:1', // optional, ratio overlay on the camera and crop the image seamlessly
ratioOverlayColor: '#00000077' // optional
}}
/>
if you on your iphone try to make a photo on very black background (put your phone on a desk for example), it uses the flash.
I think a fix could be the following:
In CKCamera.m you are using
[CKCamera setFlashMode:AVCaptureFlashModeAuto forDevice:self.videoDeviceInput.device];
instead you should be using
[CKCamera setFlashMode:self.flashMode forDevice:self.videoDeviceInput.device];
from react-native-camera-kit.
@faisalkanji did u try on a real device?
from react-native-camera-kit.
Hi @gran33 yes I tried it on a real device
from react-native-camera-kit.
And? I tried it as well, and seems to work fine.
U r trying to take a photo without flash, right?
from react-native-camera-kit.
from react-native-camera-kit.
I have the same issue even on ios
from react-native-camera-kit.
@philolo1 Can u please explain how to reproduce?
from react-native-camera-kit.
Good news, thanks.
Did u check on Android or iOS?
from react-native-camera-kit.
@philolo1 Does it reproduce after u flip from back camera -> front -> back?
from react-native-camera-kit.
@gran33 you mean in the not modified code? Yes its the same issue, because there is also some code that sets it to automode, instead of the mode it is currently in. I would also expect it to be be the same mode as the other camera.
from react-native-camera-kit.
@philolo1 Thanks for everything! I fixed that and published to npm
(fixed iOS only). See here:
f7260eb
@yedidyak can u please take a look on Android
?
from react-native-camera-kit.
[Android Only] Can confirm this happening in react-native-camera-kit V6.2.4
from react-native-camera-kit.
Hi, i am having the same issue in react-native-camera-kit V8.0.4, in android i have the code below
<CameraKitCamera
ref={cam => this.camera = cam}
style={styles.camera}
cameraOptions={{
flashMode: 'off',
focusMode: 'off',
zoomMode: 'off',
}}
/>
and the flash is in mode 'auto' when use the camera.
from react-native-camera-kit.
Hello, any update on this ?? also using react-native-camera-kit V8.0.4
from react-native-camera-kit.
The android part of the library will be rewritten using Google's new CameraX library. This should solve some of the issues, or at least have a capable party finding bugs :)
from react-native-camera-kit.
Related Issues (20)
- I turn off camera shutter sound but it not working HOT 2
- https://github.com/firasdib/Regex101/issues/2204 HOT 1
- No image dimensions provided from capture HOT 3
- https://github.com/firasdib/Regex101/issues/2204
- After taking the photo and converting it to Base64, it rotates 90 degrees on some Android devices HOT 1
- CameraKitGalleryView having more than 25 images on scroll causes selected images style to change HOT 3
- Reading BARCODE from Gallery HOT 2
- Camera capture image not working on Bluestack : black screen + weird sound on capture picture click
- Pinch to zoom not working
- PrivacyInfo
- Should we consider upgrading the camerax_version?
- Cannot find module 'react-native-camera-kit' or its corresponding type HOT 1
- Android build error with v14.0.0-beta15 HOT 1
- react native camera kit is not covering full screen (IOS) HOT 1
- QR codes with binary data
- i am not able to switch between front camera and back camera
- Enable/disable mirroring captured pictures when using the front camera
- A problem occurred evaluating project ':react-native-camera-kit'. > Could not get unknown property 'kotlin_version' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. HOT 2
- iOS landscape orientation camera preview not following screen orientation HOT 1
- Plugin with id 'kotlin-android' not found. HOT 1
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-kit.