react-native-torch icon indicating copy to clipboard operation
react-native-torch copied to clipboard

fix#6 support for torch state checking

Open oguennec opened this issue 6 years ago • 3 comments

This PR adds support for accessing the native torch mode (ON or OFF).

An initial torch switch from react-native is required to get the correct status of the Torch. Subsequent Torch mode switches (from anywhere) are well detected.

This method is currently only supported on Android >= 6.0 and on iOS (>= 8.0).

oguennec avatar Apr 24 '18 09:04 oguennec

Looks good to me.

TwFlem avatar Nov 07 '18 16:11 TwFlem

Hi @TwFlem

Can you please merge this change? We need this change for our App.

Thanks.

udaisshekhawat avatar Jun 01 '20 10:06 udaisshekhawat

@oguennec have you released your version on NPM, since this package does not seem to be maintained anymore?

HunteRoi avatar Apr 09 '24 14:04 HunteRoi