mench / dependency-injection-es6

MIT License
16 stars 1 forks source link

can't find variable:Symbol in reactnative project #4

Open Mostafasaffari opened 6 years ago

Mostafasaffari commented 6 years ago

hi I used dependency injection in reactnative project but fire error in "src/container.js" line number 4:28 could you help me please? and how to "use dependency injection es6" in react native?

mench commented 6 years ago

I think your interpreter does not support Symbol. You can try to include es6 Symbol polyfill https://www.npmjs.com/package/es6-symbol on top of your code base before requiring dependency-injection

devmondo commented 6 years ago

@Mostafasaffari symbol is an ES6 feature, not all browsers or node versions support it. you need symbol polyfill for that to work if you target old browsers.

https://kangax.github.io/compat-table/es6/