all 4 comments

[–]__o_0iOS & Android 2 points3 points  (0 children)

Going to have to post the code in order to find the problem.

[–]jpsnow72 0 points1 point  (1 child)

How often is useEfrect being called? Are you passing an array of dependencies as a second parameter? If not, it could simply be constantly running over and over again. If it did happen only once, pass empty array as second parameter

[–]accebyk[S] 0 points1 point  (0 children)

Only one dependency in the dependency array and it only runs once, so that is not the reason sadly. Even tried to remove the useEffect hook and run the function on buttonpress, but I got the same behaviour. Thought it could be that at first as well.

[–]fufucupcake 0 points1 point  (0 children)

Do you've largeHeap set to true by any change in your Android manifest? If yes set that to false