Randagio13 / countries-states-cities-service

Get the World's countries, states, regions and cities
MIT License
16 stars 5 forks source link

React-native iOS/Android - erroring out #5

Open bmohankumar opened 2 years ago

bmohankumar commented 2 years ago

Hi,

I am using this module in react-native 0.60.0. I am getting this 'Maximum call stack size excedded' error in real devices.

If I connect a debugger with iOS simulator or Android emulator, it works fine., if I disconnect a debugger, it has a same error in iOS simulator.

Randagio13 commented 2 years ago

HI @bmohankumar,

Thank you for highlighting this matter. I'm already working to figure out this issue.

It could be related to JSON's size.

Let's see what I can do.

purellarohith commented 2 years ago

Have you found any solution ? @Randagio13

Randagio13 commented 2 years ago

Hi @purellarohith,

I split services into 3 packages to avoid that. Could you try for example with this one?

Let me know! Thank you 🙌🏻

Flowko commented 2 years ago

Thanks for making this library, @Randagio13 sadly the issue still persist, i used https://github.com/Randagio13/cities-service version 1.1.1 keeps on returning the same error:

ERROR  RangeError: Maximum call stack size exceeded.
 ERROR  Invariant Violation: "main" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project. 
* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called.
Randagio13 commented 2 years ago

Hi @Flowko!

Thanks for your feedback. I'll take a look on that asap.