r/reactnative • • May 06 '24

React native or Flutter

I have seen lot of confusion here , there are react native developers who wants to switch to Flutter and there are Flutter developers who wants to switch to React Native ? Now personally I am a react native developer and want to try Flutter so is it worth it, to learn a whole new ecosystem? Help me here 🙏..

0 Upvotes

46 comments sorted by

View all comments

1

u/TwistyListy7 May 06 '24

I am a professional developer working on flutter projects and react native projects. I much prefer React Native + Expo. It’s such a combo. It’s easy to get up and running with, running to a real device or simulator is super easy as well and if you’re familiar with JavaScript/Typescript, you’re going to be sweet! Flutter is a nightmare to install and set up, there’s hundreds of SOF articles where people need assistance installing flutter.

Don’t get me wrong, I still enjoy Flutter. One thing I do miss when working on react native apps is the ability to debug it line by line. I can do this in Android Studio when working in flutter. For React Native, I have to put console logs everywhere, unless someone has a better way to debug it?

1

u/HarpooonGun May 06 '24

With Expo you can use Chrome dev tools and the JS "debugger;" keyword to inspect code at that breakpoint.

With either Expo or RN CLI, you should be able to attach to a running hermes process with VS Code with extensions, which allows you to use breakpoints within VS Code.