react-native-camera-kit
react-native-camera-kit copied to clipboard
onFocus event OR allow child of camera
Is your feature request related to a problem? Please describe.
We need to be able to display an opacity slider over the camera taker area in some scenarios, which is triggered by the user tapping on the camera area. This currently works with react-native-camera
by having a child component that contains some onPress actions. However, react-native-camera-kit
does not allow child components.
I attempted to have a sibling component that overlays the camera area, but if there's an onPress action in my custom component, it prevents tap-to-focus & zoom. I currently don't have a way to have the tap-to-show-my-slider behavior AND the tap-to-focus/zoom from your camera package together - I either get one or the other
Describe the solution you'd like Allow child components that will work in a way that will let us do what's described above (resulting in fewer code changes for us), OR an onFocus or onPress prop or similar that we can pass a function to, that will run when the user taps in the camera area
Describe alternatives you've considered only options I could think of are described in my solution proposal.
Additional context