ctrlplusb / react-component-queries

Provide props to your React Components based on their Width and/or Height.
MIT License
182 stars 12 forks source link

Depends on `Object.assign` which is missing in e.g. iOS 8 Safari #77

Open kraf opened 7 years ago

kraf commented 7 years ago

Depends on Object.assign which is missing in e.g. iOS 8 Safari

ctrlplusb commented 7 years ago

Thanks for the heads up. Will look into this

kumarharsh commented 7 years ago

You need to include the object-assign ponyfill, or if you're using babel, use their babel-polyfill.

React will remove object-assign from it's library too soon-ish: https://github.com/facebook/react/pull/10280