Skip to content Skip to sidebar Skip to footer

React Native Appregistry Is Not A Callable Module

I'm having a small issue with following a tutorial in 'Learning react native O Reilly'. I'm on the first app (WeatherProject) and when I did the react-native init WeatherProject co

Solution 1:

You are importing wrong AppRegistry and react.

Try importing them in your index.ios.js and index.android.js like this:

importReactfrom'react';
import { AppRegistry } from'react-native';
importWeatherProjectfrom'./WeatherProject';

This should work.

You should check the official documentation, here it's a example of AppRegistry.registerComponenthttps://facebook.github.io/react-native/docs/props.html#content

Post a Comment for "React Native Appregistry Is Not A Callable Module"