react-native-incall-manager icon indicating copy to clipboard operation
react-native-incall-manager copied to clipboard

Flash API

Open ndarilek opened this issue 9 years ago • 5 comments

I'd like to see an API for determining availability of, as well as toggling, camera flash. I suggest the following:

isFlashAvailable(): Returns true if the available hardware supports a flash. setFlashEnabled(bool): Sets the flash on or off.

ndarilek avatar May 11 '16 13:05 ndarilek

@ndarilek

sorry, I have to deal with another project recently, so new features would be delayed.

have you studied API on android/ios yet? If you have some code snippets already, I can create a branch to merge your PR then we finalize it together :smile:

info required on both ios/android

  • api to detect flash light availability ( between several version )
  • api to toggle flash light ( between several version )

zxcpoiu avatar May 13 '16 08:05 zxcpoiu

Cool, I need this feature and can take a crack at implementing it on Android, but I don't yet have OS X/iOS hardware. If I implement a working Android solution, would you be able to either make the API work on iOS, or hash out an API that works on both?

ndarilek avatar May 13 '16 13:05 ndarilek

sure, I will try my best. go head on master branch!

zxcpoiu avatar May 16 '16 04:05 zxcpoiu

@zxcpoiu Hi, is there any progress? Thank you!

MartinSadovy avatar Jan 26 '17 22:01 MartinSadovy

@ndarilek @MartinSadovy

good news, @stepanvotava had implemented ios version at #25

zxcpoiu avatar Feb 27 '17 13:02 zxcpoiu