Skip to content

☂️ npm packages for react-native-web #35263

Closed

Description

@necolas

Description

These are spillover tasks from the W3C props & styles projects. The aim is to move user-space modules into their own packages within the monorepo. React Native for Web must currently copy-paste-edit these modules. Publishing these modules as npm packages will allow React Native and React Native for Web to depend on the same implementations, providing users of cross-platform React with a more reliable foundation (and making it easier for RNWeb to be maintained.)

Once again we're looking for the community's help! If you're interested in helping to reorganize the RN monorepo, you could contribute by helping to move these modules into packages with @cortinico's oversight. If you're interested in improving consistency between RN and RNWeb, you could contribute by helping to prepare those new packages for npm publication and consumption by RNWeb. We're also open to suggestions and feedback on how to proceed.

Animated

VirtualizedList

FlatList

Activity

  1. deleted a comment from github-actions on Nov 8, 2022
  2. 12 remaining items

  3. necolas commented on Mar 21, 2023

    @necolas
    Author

    There are a number of significant stakeholders, like Expensify, who depend on RN for their cross-platform product. And it seems to be an ongoing source of issues for them that these major modules are not kept in sync across native and web. I think we really need to get these modules into installable packages and published as compiled JS ASAP.

  4. AndrewGable commented on Mar 28, 2023

    @AndrewGable
    Contributor

    @necolas - Agreed, we do depend on React Native for our cross-platform product (react-native-web included). Please let us know if/how we (Expensify) can help move this project along. If there is anything we can do from implementation, design, or sponsor work; we are happy to help.

  5. necolas commented on Mar 28, 2023

    @necolas
    Author

    Thanks. Any of the incomplete tasks above are in need of attention. We still need to compile to JS before publishing too. I don't think there's a mechanism for automatic publishing yet, but manually publishing the packages once they've been created would be good enough for RNW to start the transition.

  6. Maxime-p commented on Jun 6, 2023

    @Maxime-p

    Hi,
    Small question.
    Why this issue isn't tag with a label "☂️ Umbrella"?
    I am looking for a good first issue to contribute and I searched with the label and not all Umbrella issues appeared cause they are not tagged.
    Sorry if I'm irrelevant.

  7. added
    ☂️ UmbrellaTo label issues that serve as coordination point and drivers for tasks in the react-native repo
    on Jun 6, 2023
  8. cortinico commented on Jun 6, 2023

    @cortinico
    Contributor

    Why this issue isn't tag with a label "☂️ Umbrella"?

    That was an oversight on our end, we added it now

  9. DylanTet commented on Oct 29, 2023

    @DylanTet

    Started working on Move Animated to a separate package called @react-native/animated within packages/animated. @necolas @cortinico . Just trying to figure out which files need to be moved to the new folder.

  10. gabrieldonadel commented on Oct 29, 2023

    @gabrieldonadel
    Collaborator

    Started working on Move Animated to a separate package called @react-native/animated within packages/animated. @necolas @cortinico . Just trying to figure out which files need to be moved to the new folder.

    @DylanTet I don't have the bandwidth to work on this right now but you can use my PR as a base for what needs to be changed #35467

  11. DylanTet commented on Oct 30, 2023

    @DylanTet

    @gabrieldonadel thanks man! Looking at it now, if you dont mind me asking, what exactly did you guys mean by having issues with the new monorepo structure?

  12. fnwk commented on Jan 26, 2024

    @fnwk

    @necolas Hey, if no one is working on it, i can take care of "Move Animated to a separate package called @react-native/animated within packages/animated."

  13. SGamrekelashvili commented on Apr 20, 2025

    @SGamrekelashvili

    Hello, I found out that no one has it done "Move Animated to a separate package called @react-native/animated within packages/animated" after @gabrieldonadel's comment, so I created a PR that includes those changes:
    #50816

    Looking forward work on this issue thanks

  14. psnet commented on Jun 28, 2025

    @psnet

    so... as due to #50816 (comment) it will never be done without huge breaking of all ecosystem of RN

    so sad 🙅

  15. necolas commented on Jun 28, 2025

    @necolas
    Author

    We did it with VirtualizedList https://github.com/facebook/react-native/tree/main/packages/virtualized-lists

    It usually shouldn't change anything for users of RN when parts are available as packages.

    I'll close this issue since it's several years old and no longer in progress. Thanks for all the effort and progress made!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions