ak85
ak85

Reputation: 4264

'undefined' has no propType for native prop error react native

I am trying to get up and running with react native. I have xcode and watchmen installed as required in this link. https://facebook.github.io/react-native/docs/getting-started.html

Following the quickstart I have done the below

npm install -g react-native-cli

react-native init AwesomeProject

In the newly created folder AwesomeProject/

Open AwesomeProject.xcodeproj and hit run in Xcode.

When I do this I get the 'red error screen' in my iphone emulator with the below message.

'undefined' has no propType for native prop 'RCTMap.mapType' of native type 'MKMapType'

I have had a look at the troubleshooting link but have not been able to identify this as a known error.

How can this be resolved?

Upvotes: 0

Views: 572

Answers (1)

Beastwood
Beastwood

Reputation: 484

I think this happens when the xcode packager stops working correctly. How I fix it:

  1. Stop xcode
  2. Close the terminal running packager
  3. Clean solution
  4. Click Build and Run (play button)

Upvotes: 1

Related Questions