You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-3Lines changed: 14 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,25 @@
2
2
3
3
`rect-native-css` ported to C++ for performance. This is a prototype and not production ready. Ideally this eventually be `react-native-css@4.0.0`
4
4
5
+
## Description
6
+
7
+
This library is a port of `react-native-css` to C++ for performance. It will eventually be a drop in replacement for `react-native-css` and they will share the same compiler.
8
+
9
+
Unlike `react-native-css`, the majority of the processing is done off thread in C++. When styles are updated they are directly applied to the Shadow Tree nodes.
10
+
11
+
There are two exceptions where styles are applied via a React re-render:
12
+
13
+
- A non-style prop is changed (e.g `caretColor`)
14
+
- The component is animated (the component has a transition or animation style)
15
+
5
16
## Progress
6
17
7
18
These are the features that are "done". Only basic testing as been performed.
8
19
9
20
-[x] Dynamic styles - shadow tree
10
-
-[] Dynamic styles - JS rerender
21
+
-[x] Dynamic styles - JS rerender
11
22
-[x] Style hot reload - shadow tree
12
-
-[] Style hot reload- JS rerender
23
+
-[x] Style hot reload- JS rerender
13
24
-[x] Web
14
25
-[x] Multiple style rules
15
26
-[x] Specificity sorting
@@ -30,7 +41,7 @@ These are the features that are "done". Only basic testing as been performed.
0 commit comments