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

Torch (flashlight) plugin for React Native (Android/iOS)

Results 15 react-native-torch issues
Sort by recently updated
recently updated
newest added

See https://reactnative.dev/docs/new-architecture-library-intro https://reactnative.dev/blog/2022/06/16/resources-migrating-your-react-native-library-to-the-new-architecture

What if flash is open in advance???

When the camera is turned on. it does not work on android ,but can work on ios. can you help me?

Information: - Android 5.1 (SDK 22) - Device: Samsung Galaxy Grand Prime Stack trace ``` java.lang.RuntimeException: at android.hardware.Camera. (Camera.java:550) at android.hardware.Camera.open (Camera.java:408) at com.cubicphuse.RCTTorch.RCTTorchModule.switchState at java.lang.reflect.Method.invoke (Native Method) at java.lang.reflect.Method.invoke...

Hi. I have manually linked, and followed the manual instructions for iOS, but I keep getting: "React/RCTBridgeModule.h file not found" when I try to build the project. Any idea on...

I use: "dependencies": { "react": "16.3.1", "react-native": "0.55.4", "react-native-torch": "^1.1.4" }, ... import Torch from 'react-native-torch'; ... Torch.switchState(true); ... Same error in android: Possible Unhandled Promise Rejection(id:0): typeError:undefined is not...

Is there anyway we can control flashlight of the front camera?

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...

The `AVCaptureDevice` API on iOS has a couple of methods like `isTorchAvailable`, `isTorchActive` and `hasTorch` for handling the torch. I haven't checked but I'm sure Android also has methods like...