/** @jsxImportSource test */
import { View } from "react-native";
import { registerCSS, render, screen, setupAllComponents, vars } from "test";
const testID = "react-native-css-interop";
setupAllComponents();
test("vars", () => {
registerCSS(
`.my-class {
color: var(--test);
}`,
);
render(
,
);
const component = screen.getByTestId(testID);
expect(component).toHaveStyle({
color: "black",
});
screen.rerender(
,
);
expect(component).toHaveStyle({
color: "blue",
});
});