react-native-vision-camera/.github/ISSUE_TEMPLATE/BUG_REPORT.yml
2023-09-14 14:10:52 +02:00

118 lines
4.5 KiB
YAML

name: 🐛 Bug Report
description: File a bug report
title: "🐛 "
labels: [🐛 bug]
body:
- type: textarea
attributes:
label: What's happening?
description: Explain what you are trying to do and what happened instead. Be as precise as possible, I can't help you if I don't understand your issue.
placeholder: I wanted to take a picture, but the method failed with this error "[capture/photo-not-enabled] Failed to take photo, photo is not enabled!"
validations:
required: true
- type: textarea
attributes:
label: Reproduceable Code
description: >
Share a small reproduceable code snippet here (or the entire file if necessary).
Most importantly, share how you use the `<Camera>` component and what props you pass to it.
This will be automatically formatted into code, so no need for backticks.
render: tsx
placeholder: >
const device = useCameraDevices()
// ...
<Camera
style={StyleSheet.absoluteFill}
device={device}
isActive={true} />
validations:
required: true
- type: textarea
attributes:
label: Relevant log output
description: >
Paste any relevant **native log output** (Xcode Logs/Android Studio Logcat) here.
This will be automatically formatted into code, so no need for backticks.
* For iOS, run the project through Xcode and copy the logs from the log window.
* For Android, either open the project through Android Studio and paste the logs from the logcat window, or run `adb logcat` in terminal.
render: shell
validations:
required: true
- type: textarea
attributes:
label: Camera Device
description: >
Paste the JSON Camera `device` that was used here.
Make sure to leave out the `formats` prop as that is too long for the issue.
```
device.formats = undefined
console.log(JSON.stringify(device, null, 2))
```
This will be automatically formatted into code, so no need for backticks.
render: json
placeholder: >
{
"id": "com.apple.avfoundation.avcapturedevice.built-in_video:6",
"devices": [
"ultra-wide-angle-camera",
"wide-angle-camera"
],
"formats": null,
"hardwareLevel": "full",
"hasFlash": true,
"hasTorch": true,
"isMultiCam": true,
"minZoom": 1,
"neutralZoom": 2,
"maxZoom": 123.75,
"name": "Back Dual Wide Camera",
"position": "back",
"supportsDepthCapture": false,
"supportsFocus": true,
"supportsLowLightBoost": false,
"supportsParallelVideoProcessing": true,
"supportsRawCapture": false
}
validations:
required: true
- type: input
attributes:
label: Device
description: >
Which device are you seeing this Problem on?
Mention the full name of the phone, as well as the operating system and version.
If you have tested this on multiple devices (ex. Android and iOS) then mention all of those devices (comma separated)
placeholder: ex. iPhone 11 Pro (iOS 14.3)
validations:
required: true
- type: input
attributes:
label: VisionCamera Version
description: Which version of react-native-vision-camera are you using?
placeholder: ex. 3.1.6
validations:
required: true
- type: checkboxes
attributes:
label: Can you reproduce this issue in the VisionCamera Example app?
description: Run the example app (`package/example/`) and see if the issue is reproduceable here.
options:
- label: I can reproduce the issue in the VisionCamera Example app.
- type: checkboxes
attributes:
label: Additional information
description: Please check all the boxes that apply
options:
- label: I am using Expo
- label: I have enabled Frame Processors (react-native-worklets-core)
- label: I have read the [Troubleshooting Guide](https://react-native-vision-camera.com/docs/guides/troubleshooting)
required: true
- label: I agree to follow this project's [Code of Conduct](https://github.com/mrousavy/react-native-vision-camera/blob/main/CODE_OF_CONDUCT.md)
required: true
- label: I searched for [similar issues in this repository](https://github.com/mrousavy/react-native-vision-camera/issues) and found none.
required: true