Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
136
rated 0 times [  140] [ 4]  / answers: 1 / hits: 170426  / 8 Years ago, tue, july 12, 2016, 12:00:00

I am currently going through the React-Native tutorials. I began with the Getting Started tutorial, where I made a new react native project and successfully managed to run the project on my device.



I then started the Props tutorial, I copied the code snippet and tried to run the project again and had the following error message show up on my screen:




More From » facebook

 Answers
17

I guess it is an error caused by not matching name of project and your registered component.


You have inited project with one name, i.e.


react-native init AwesomeApp


But in your index.ios.js file you register other component


AppRegistry.registerComponent('Bananas', () => Bananas);


When it must be


AppRegistry.registerComponent('AwesomeApp', () => Bananas);


If your component name does match, ensure you don't have any other react-native/node process running in another terminal.


[#61400] Monday, July 11, 2016, 8 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nathalieg

Total Points: 462
Total Questions: 106
Total Answers: 93

Location: Turks and Caicos Islands
Member since Tue, Mar 30, 2021
3 Years ago
nathalieg questions
;