Fix torch init status (#709)

fix call the setTorchMode (which was calling flash erroneously)
This commit is contained in:
Symous 2017-05-23 13:47:23 -05:00 committed by Nick Pomfret
parent 6721951bfb
commit 71098d4ed5

View File

@ -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);
} }