Skip to content

Add PlatformColor module #2807

@luixo

Description

@luixo

Is there an existing request?

  • I have searched for this request

Describe the feature request

Hello,
There's a module PlatformColor in react-native
As react-native ecosystem is too big, a lot of community package developers don't check if a specific module exists in web counterpart of the react-native.

In my case this resulted into nativewind v5 not being able to compile by vite because it relies on the PlatformColor module.

Adding this as an identity function will help a lot (though getting system color would be a better alternative).

This was already open, but closed for technical reasons.

I'm up for a PR, let me know if that PR will be considered to merge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequires extension or creation of new React Native API

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions