Skip to content

react-primitives will no longer work with RNW 0.11.2+ #129

@momsse

Description

@momsse

Since [email protected] and further ReactNativeStyleResolver module does not exist anymore and cause react-primitives to crash at the injection step. See necolas/react-native-web#1304 for more info.

It seems that createStyleResolver is a good replacer. At least it works for me ... for now :)

The only workaround that I found for now is to patch the module thanks to patch-package:

src/injection/react-native-web.js#L19

- const StyleRegistry = getDefault(require('react-native-web/dist/cjs/exports/StyleSheet/ReactNativeStyleResolver'))
+ const StyleRegistry = getDefault(require('react-native-web/dist/cjs/exports/StyleSheet/createStyleResolver'))()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions