Hello everybody!
Been working with React for a long time, just starting to work with React Native. I really like that you as React developer can start writing code that compiles to native code without too much struggle.
I have found a few programs however working with React Native in a development environment. Here is my list:
Having a Modal open as you reload the app, will cause the Modal component to get stuck requiring you to rebuild the app to see updated changes.
VSCode intellisense not working out of the box. Working with React normally, it feels very smooth just auto importing stuff as you write the component name + you get autocomplete as you're typing function/variables names etc.
Error codes imprecise. As syntax errors, wrong paths etc. happen, it is not always obvious what the mistake was. I don't have a concrete example right now but sometimes I just get a nonsense error message and I'm deleting code to see what caused the error.
Missing a way of checking out the exact layout of things. Some sort of Elements view that Chrome Dev Tools provide so you can see exactly what's going on 😒 really miss that, maybe it exists and I wasn't aware?
These are the problems that I'm facing as a beginner to React Native. Anyone got similar experience?
Top comments (2)
I haven't experienced or don't have good advice for 1-3, unfortunately.
For
There's a layout inspector in the built in developer menu (
cmd+d
in the iOS simulator) under "show inspector". It's not as nice as the ones browsers have these days, but it can get the job done.You can also hook the React devtools up to an RN app. There's a few options out there, but I prefer React Native Debugger, it's got them and a bunch of other tools built in.
Hope that helps, happy React Native-ing!
Thanks!
I will have a look :)