Skip to content

[issue][v3] react-native-web version #521

Description

@Freddy03h

Hi! I'm testing legend-list in my app (React Native + React Native Web), and I noticed a lot of warnings like this at runtime:

index.js:1 React does not recognize the `automaticallyAdjustsScrollIndicatorInsets` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `automaticallyadjustsscrollindicatorinsets` instead. If you accidentally passed it from a parent component, remove it from the DOM element.

It seems that some React Native props are being passed directly to the HTML <div>.

I also ran into an error when setting a style prop on the list:

Uncaught TypeError: Failed to set an indexed property [0] on 'CSSStyleDeclaration': Indexed property setter is not supported.

If I force a webpack alias to react-native.js instead of react-native.web.js, both the warnings and the error disappear, but I then get some visual glitches.

Is this expected, or is there something I might be missing in my setup?
(v3.3.5)

Thank you!

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