In 2023 React Native started to support pointer event via styles, rather than as a prop on View, to match CSS. We already had atoms for auto and none, but we were missing box-only and box-none. This PR adds these missing atoms, so that we can migrate over to using styles for this - imo, it's a lot more natural than the prop.
+9
-1
Diff
round #0
+2
-1
package.json
+2
-1
package.json
+6
src/atoms/common.ts
+6
src/atoms/common.ts
···
998
998
pointer_events_auto: {
999
999
pointerEvents: 'auto',
1000
1000
},
1001
+
pointer_events_box_only: {
1002
+
pointerEvents: 'box-only',
1003
+
},
1004
+
pointer_events_box_none: {
1005
+
pointerEvents: 'box-none',
1006
+
},
1001
1007
user_select_none: {
1002
1008
userSelect: 'none',
1003
1009
},
This is very cool and good. Totally not commenting this to trigger a notifβ¦