mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 09:48:17 +00:00
Fix torch init status (#709)
fix call the setTorchMode (which was calling flash erroneously)
This commit is contained in:
parent
6721951bfb
commit
71098d4ed5
@ -74,7 +74,7 @@ public class RCTCameraView extends ViewGroup {
|
||||
_viewFinder.setFlashMode(this._flashMode);
|
||||
}
|
||||
if (-1 != this._torchMode) {
|
||||
_viewFinder.setFlashMode(this._torchMode);
|
||||
_viewFinder.setTorchMode(this._torchMode);
|
||||
}
|
||||
addView(_viewFinder);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user