Skip to content

Commit 2b042c4

Browse files
committed
chore: updated example
1 parent 3dabbf8 commit 2b042c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

example/src/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ StyleRegistry.addStyleSheet({
1414
d: [{ color: "green" }],
1515
m: { orientation: ["=", "landscape"] },
1616
},
17-
{ s: [], d: [{ color: ["fn", "var", "test", "yellow"] }] },
1817
],
1918
],
19+
["text-[--test]", [{ s: [], d: [{ color: ["fn", "var", "test"] }] }]],
2020
],
2121
});
2222

2323
export default function App() {
2424
return (
2525
<View style={styles.container}>
2626
<Text
27-
className="text-red-500"
27+
className="text-[--test] text-red-500"
2828
onPress={() => {
2929
console.log("Pressed!");
3030
StyleRegistry.setRootVariables({
31-
test: [{ v: "pink", m: { orientation: ["=", "landscape"] } }],
31+
test: [{ v: "pink", m: { orientation: ["=", "portrait"] } }],
3232
});
3333
}}
3434
>

0 commit comments

Comments
 (0)