Situation 1. New (Just Created) React Native Project now working
You decided to start develop React Native Application and after installation React Native library you create new project and try to run it on iOS Simulator.And You getting Error
Lets see what versions are used. React native Version 0.45. For knowing version of React Native that used in project open file package.json in project folder. I found this issue June 10, 2017.
Dependencies in package.json file
Error screens
Solution
And what we have to do here?- Stop process and close all terminal windows (close react packager window)
- Open terminal window again
- Go to project folder
- Run command
- Open project in xcode and run it
- It should be work
XCode Compilation Success
Run successfully and without errors on the simulator
Sources
- Facebook React Native Library
- Github React Native Issues
- React Native Stackoverflow Errors Solutions
Situation 2. React Native Project now working after adding npm library
react-native-svg
You install the library
After you link the library
Then you try to run your project from XCode
(after invoking)
And finally you get an error
Let's see more detailed what error it is
Solution
So, this error happen because of problems with tvOS targets. Because don't need tvOS target in project I just remove them.
Target after removing tvOS
Next, I remove library named libRNSVG-tvOS.a for tvOS from iOS Target Linked Frameworks and Libraries. And try to run application.
Try to run project and everything goes successfully
App now is successfully running
Sources
Situation 3. React Native Project got error "Cannot find module 'jest-haste-map'" when you try to update version of some library
For example, you try to update or install library for Facebook integration (react-native-fbsdk)
and you get the error
Solution
Solution is simple. You just need to remove react-native and install it again.After that you can try to install library again and it should be work fine.
Your article is one of its kind which explained every bit of Custom Build Website. looking for further valuable articles from you
ReplyDeleteYou've written a fascinating piece of writing. This is exactly the kind of information I was looking for. Please provide me with more relevant information so that I can learn more. Best Custom Websites
ReplyDeleteThank you very much for drawing my notice to this. Your blog is jam-packed with useful facts. Until I read that, I would have no idea. I'll come back for more fantastic material.
ReplyDeleteBest wishes, and good luck.
Web Design USA
This comment has been removed by the author.
ReplyDeleteYour article is one of its kind which explained every bit of Custom Build Website. looking for further valuable articles from you
ReplyDeleteMobile Performance Meter HackYou made some good points there. I did a Google search about the topic and found most people will believe your blog
Amazing write-up! The blog was very informative. Keep it up!
ReplyDeleteCustom Web Developer
Really awesome article
ReplyDeleteReact vs React Native