Skip to content

Runing on web browser #50

@Nutricontrol

Description

@Nutricontrol

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions