Replies: 1 comment
-
Hey @nitin1039! Basically, you shouldn't call hooks in a loop as you do, inside the Another problem is that you have the I recommend reading React's rules of hooks to learn how to use hooks properly. You should be able to properly refactor your code then. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
this is my code and when i pick any image with the help of import DocumentPicker from "react-native-document-picker"; library am getting this error
Error in image pikcing [Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.]
this si my whole code
basically i want to implement a feture like where user can select muiltple image from device and user can rotate, pinch to zoom, move individually each image according to need
please help me on this issue
Beta Was this translation helpful? Give feedback.
All reactions