Typical React Native Problems with General Solutions

Everything is hard…

Till you understand..

baris senyerli


If you are react native developer then god bless you! You are not only a developer, you are a survival hero who is fighting anonymous bugs and errors. I feel your pain in your veins. Time is getting fast flow like a river over the time. It is time to reach solutions!

The best way to resolve problems, resolve most of %80 of same reason. We are going to start with outer circle of error atmosphere.

First Stage: NPM Packages Installation

npm ci # instead of npm install

You need to understand why you have to stop using npm install. This is increase your packages version if next version available. That may cause errors. If you remember I did everything same like the video tutorial but doesn't work!. Alright, i gave you a precious solution.


Next Stage: Delete Old Builds

rm -rf ~/Library/Caches/CocoaPods
rm -rf Pods
rm Podfile.lock
rm -rf ~/Library/Developer/Xcode/DerivedData/*  # 1
pod deintegrate
pod setup
pod install
rm ./ios/.xcode.env.local # not required but recommended

Now your xcode and ios packages getting a shower with this code. They are pure and ready to for new builds. But you need to careful about number 1: delete all builds (do not scare, you can rebuild). After this code execution i am recommending next stage.


Next Stage: Before Run IOS Build

cd ios && pod install && cd .. && npx react-native run-ios

You have to make a pod install like this because it will say you can go with ios builds. This single line code looking every time for next stage. Any errors will stop the process switching to next stage. Now if it is done successfully you can go on for next stage.

Final Stage: Share

If you did not get new errors then amazing! But if you still have headache about new errors please share them from comment section i will looking for you potential solutions. As a developer i am working for five years any kind of products as a multi error fighter. I even do not go on without errors. Try me!

You are not wrong, softwares are missing something. They produce by people!

baris senyerli

Leave a Reply

Your email address will not be published. Required fields are marked *

About the author

Engineering Manager of multiple projects.