Using exceljs in my React Native application causes the app to get stuck at the splash screen when initializing a hook from React Query #2889
Unanswered
amtw123456
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I need to create a a way for our Mobile Application made with React-Native to generate excel files and I already have a function that will let me generate a .xlsx file using the library of exceljs. Initially this function works as intended and I was able to generate the .xlsx file. However when introducing an initialization of a Hook from React Query my mobile application gets stuck at the splash screen or sometimes prompt a blank screen. There is no error log coming from the terminal. Basically, No errors are showing since I'm getting a succesfull build.
This is a sample code for generating a .xlsx file.
This is a sample React Query Hook for a specific api call that will be used for initialization of a hook.
This is the base generic mutation hook where the react query hooks used are based from.
I'm guessing the main cause of the error is the exceljs package because when I remove code using it. The React-Native app works as intended. But as much as possible I dont want to use another package for generating excel reports. It can also be that my problem is unrelated to React Query. If you have any insights or possible solutions please tell me as I've been stuck with this problem for days.
Update: Was finally able to display an error. The error came from android studios log cat but I'm not sure where to go from here.
Beta Was this translation helpful? Give feedback.
All reactions