rn-router
rn-router copied to clipboard
Fix core React imports
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!
This should be out soon
Much appreciated sir! ^_^