I'm trying to learn react-native from Tyler McGinnis tutorial: https://egghead.io/lessons/react-react-native-basic-ios-routing#/tab-code
The error message below seems straight forward, but I'm not sure what I'm doing wrong.
Seems you're trying to access 'ReactNative.Component' from the 'react-native' package. Perhaps your meant to access 'React.Component' from the 'react' package instead. For example instead of:
import React, {Component,View} from 'react-native';
You should now do:
import React, {Component} from 'react'; import {View} from 'react-native';
import React, { Component } from 'react';
import {AppRegistry,NavigatorIOS,StyleSheet,Text,View} from 'react-native';
import {Main} from './App/Components/Main';
var styles = StyleSheet.create({ container: {
flex: 1,
backgroundColor: '#111111' }, });
React
has been defined and assigned to the 'react-native' default export – Pineda