mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 17:58:20 +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);
|
_viewFinder.setFlashMode(this._flashMode);
|
||||||
}
|
}
|
||||||
if (-1 != this._torchMode) {
|
if (-1 != this._torchMode) {
|
||||||
_viewFinder.setFlashMode(this._torchMode);
|
_viewFinder.setTorchMode(this._torchMode);
|
||||||
}
|
}
|
||||||
addView(_viewFinder);
|
addView(_viewFinder);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user