I am working on a project in react native where i need to access data stored in another file {users} as js object this is my sample data
export var ibpid = {
name:'Dave',
}
i have imported the data in another file using this syntax
import * as ibpid from './YearSwitch'
if i access the data ibpid an object if i log it i get the folowing
"ibpid": Object {
"name": "samuel",
},
}
but if i try to access the object child name i get undefined. Is there something i am missing. Thank you in advance