I'm not sure if his reaction is native, but these are my versions:
"react-native": "0.46.4",
"babel-preset-react-native": "2.1.0",
export default 'a file works!'
export default 'b file works!'
import a from './a'
import b from './b'
export { a, b }
And basically when I try:
import * as utils from 'src/utils'
// or
import { a, b } from 'src/utils'
It returns undefined properties "a" and "b", such as
utils = { a: undefined, b: undefined }
I have no idea what I'm doing wrong here, I think those files a/b.jsdo not load when they should be, one hack that I did earlier was on the listener function utils.auth, where I had to if (auth && auth.listener), and it worked, because, when the application starts, the listener is undefined, but then right after it becomes what it should be.
Edit: It seems that if I try:
const a = 'a works'
const b = 'b works'
export { a, b }
The result is the same.