react-everywhere / re-start

react-native template to target multiple platforms :globe_with_meridians: :iphone: :computer: with single codebase.
https://medium.com/@amoghbanta/write-once-use-everywhere-with-react-native-d6e575efe58e#.nfl50gwfg
MIT License
1.3k stars 85 forks source link

undefined is not an object (evaluating in xxx.xxx) in safari. #64

Closed yadavsachin closed 6 years ago

yadavsachin commented 6 years ago

xxx.xxx is works well in chrome and IE

piranna commented 6 years ago

Can you provide more info? So far I can only tell you Safari is the new IE6.

yadavsachin commented 6 years ago

I have function called isCustomerDataAvailable(){ return this.data || IsNull(Data.Customer) }

Data.Customer is basically return as "object" in chrome and IE Strange thing is in safari also it returns me as "object" but sometimes it throws me error as below. message: "undefined is not an object (evaluating 'Data.Customer')"

yadavsachin commented 6 years ago

I found similar thread around this. Do I need try similar thing in my case https://github.com/OneSignal/OneSignal-Website-SDK/issues/295

piranna commented 6 years ago

Yes, you should do a similar fix, seems Data is not defined, whatever it is.