RocketChat / Rocket.Chat.ReactNative

Rocket.Chat mobile clients
https://rocket.chat
MIT License
1.99k stars 1.16k forks source link

App crashes when Remote JS Debugging turned on #576

Closed shashvat-kedia closed 5 years ago

shashvat-kedia commented 5 years ago

Steps to reproduce: (i) Run the app on (ios or android) (ii) Enable Remote JS Debugging

The app crashes with an error in the realm.js library.

shashvat-kedia commented 5 years ago

@diegolmello The fix to this would be either to downgrade realm.js from 2.19.1 to 2.17.0 or this. What should I do?

diegolmello commented 5 years ago

@sd1998 Hi, thanks for opening this issue. What do you need from Remote JS debugging? Logging or inspect code? Logging: we already use Reactotron for this and it works in a better way. Inspect code: it's a problem. Even when Remote JS debugging was working for us, Realm used to slow down everything. Realm guys said this is a React Native issue

We are planning to replace Realm with Watermelon DB, so don't worry about it and try Reactotron for logging.

saadqbal commented 5 years ago

Hey @diegolmello do you have any rough timeline when are you going to shift to WatermelonDB?

diegolmello commented 5 years ago

@saadqbal Nope. It'll take a few months until we switch databases.