DEV Community

Discussion on: I've released over 100 apps in React Native since 2015, Ask Me Anything!

Collapse
 
onmyway133 profile image
Khoa Pham

What are the most 3 troublesome issues with React Native and how did you overcome?

Collapse
 
kylessg profile image
Kyle Johnson

1 - Upgrading projects from very early versions of React Native. This has been, at times, an absolute nightmare (mainly iOS)! Especially when your project relies on several libs that require native changes. In the end, it was often easiest to create a new react native project from scratch and manually link libraries one by one.

Thankfully, this is rarely an issue now as it has matured. Having said that, I think it's really important to stay on top of React Native versions if your project has longevity.

2 - I had to integrate a react native app to read sensors for a car HUD, no simple way of overcoming this I just had to learn Objective C to write a React Native Bridge. Getting comfortable doing this is really valuable if you run into projects that require specific native functionality.

3 - Once, I hit an error which I could only replicate at the point of uploading a react native app, it would error out with "You must supply a CFBundleIdentifier for this request". This had me banging my head against my desk for a few days. In the end, it was something simple like the way I was creating my release scheme in xcode.

Collapse
 
mjmaix profile image
MJ Abadilla

on #2 you said that you have to learn Obj-C.

Is is still worth it to learn Obj-C or go straight with Swift if we need to write native modules for our RN project?

Thread Thread
 
kylessg profile image
Kyle Johnson

I feel like it’s actually more useful to learn objc if the purpose is purely for react native. The reason I say this is a lot of the big native modules for rn are written in it, rarely came across swift implementations.

Thread Thread
 
mjmaix profile image
MJ Abadilla

Thank you Kyle!

Collapse
 
mohmdalfaha profile image
Mohammed Nasser

From point 2:

How and what do you recommend developers who have never written native code to go about learning and implementing native modules? Are there any specific courses or just start with any iOS/Android courses found online which don't relate to react native ?