Bug: use of direct export from reference (React Native)
Closed this issue · 1 comments
mschipperheyn commented
You use a weird way to export components from index.js. I think it is illegal but in any case, on React Native it creates an error because the import gets referenced relative to the react module and not relative to the react-intl-redux module.
You use
export IntlProvider from './components/IntlProvider'
export Provider from './components/Provider'
You should use
import IntlProvider from './components/IntlProvider'
import Provider from './components/Provider'
export ( IntlProvider, Provider }
mschipperheyn commented
It may be an issue on my side because it seems to occur on all versions of react-intl-redux and it did work on a previous version. It may be that this is just the first module that gets hit since it's high up the chain