rn-router icon indicating copy to clipboard operation
rn-router copied to clipboard

Fix core React imports

Open jjzazuet opened this issue 8 years ago • 2 comments

Hi. I'm trying to use the library but it seems the current React API isn't happy with the imports from the former:

ExceptionsManager.js:61Seems you're trying to access 'ReactNative.Component' from the 'react-native' package. Perhaps you 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';

Check the release notes on how to upgrade your code - https://github.com/facebook/react-native/releases/tag/v0.25.1

Am I missing something?

Thanks for your time and help!

jjzazuet avatar Sep 02 '16 05:09 jjzazuet

This should be out soon

jcgertig avatar Sep 02 '16 14:09 jcgertig

Much appreciated sir! ^_^

jjzazuet avatar Sep 03 '16 16:09 jjzazuet