react-native-torch
react-native-torch copied to clipboard
fix#6 support for torch state checking
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).
Looks good to me.
Hi @TwFlem
Can you please merge this change? We need this change for our App.
Thanks.
@oguennec have you released your version on NPM, since this package does not seem to be maintained anymore?