recommended
config.
As a developer, you should avoid programmatically enabling torch mode.
The flashlight can significantly drain the device's battery. If it is turned on without the user's knowledge, it could lead to unwanted battery consumption.
import Torch from 'react-native-torch'; // Not-compliant
import axios from 'axios'; // Compliant
- CNUMR best practices mobile - Torch free