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:

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

This should work.

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


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