lelandrichardson / react-primitives

Primitive React Interfaces Across Targets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-web vs react-web

L1fescape opened this issue · comments

I noticed pseudo-selectors and media-queries are implemented in the StyleSheet defined in src/web/, however trying to use a pseudo-selector the same way they're used in tests leads to the following error:

Warning: ":hover" is not a valid style property.
StyleSheet body: {
  "width": 30,
  ":hover": {
    "width": 20
  }
}

This is because the StyleSheet object being imported on web is the one from react-native-web, which does not implement pseudo-selectors. So that leads me to my question: what's the the story behind react-web and what are your plans for it?

This is a sweet project and it was awesome meeting you at Chain React!

the src/web is from before react-native-web existed. It's not used anymore