mirror of
https://github.com/zhigang1992/nativewind.git
synced 2026-06-13 01:18:18 +08:00
17 lines
443 B
TypeScript
17 lines
443 B
TypeScript
import { TextStyle } from "react-native";
|
|
import { createTests, expectError, tailwindRunner } from "./runner";
|
|
|
|
const scenarios: Record<string, TextStyle["alignContent"]> = {
|
|
center: "center",
|
|
start: "flex-start",
|
|
end: "flex-end",
|
|
between: "space-between",
|
|
around: "space-around",
|
|
};
|
|
|
|
tailwindRunner(
|
|
"Layout - Align Content",
|
|
createTests("content", scenarios, (n) => ({ alignContent: n })),
|
|
expectError(["content-evenly"])
|
|
);
|