When I try to use the library in a web browser it gives me the following error:
TypeError: Cannot read property 'style' of undefined
Module .../node_modules/react-native-responsive-layout/src/components/grid/index.js
C:/.../node_modules/react-native-responsive-layout/src/components/grid/index.js:216
213 | horizontal: PropTypes.bool,
214 | scrollable: PropTypes.bool,
215 | relativeTo: PropTypes.oneOf(['parent', 'self', 'window']),
216 | style: ViewPropTypes.style,
217 | stretchable: PropTypes.bool,
218 |
219 | children: PropTypes.oneOfType([
It would be great to be able to use this library to reuse the code between mobile devices, tablets and web browser. I try to put a style attribute on the view tag of my component, but the error persist. Is there any way to fix the error?
Thanks!
When I try to use the library in a web browser it gives me the following error:
TypeError: Cannot read property 'style' of undefined
Module .../node_modules/react-native-responsive-layout/src/components/grid/index.js
C:/.../node_modules/react-native-responsive-layout/src/components/grid/index.js:216
213 | horizontal: PropTypes.bool,
214 | scrollable: PropTypes.bool,
215 | relativeTo: PropTypes.oneOf(['parent', 'self', 'window']),
216 | style: ViewPropTypes.style,
217 | stretchable: PropTypes.bool,
218 |
219 | children: PropTypes.oneOfType([
It would be great to be able to use this library to reuse the code between mobile devices, tablets and web browser. I try to put a style attribute on the view tag of my component, but the error persist. Is there any way to fix the error?
Thanks!