mirror of
https://github.com/zhigang1992/nativewind.git
synced 2026-06-13 09:24:47 +08:00
17 lines
391 B
TypeScript
17 lines
391 B
TypeScript
import { TextStyle } from "react-native";
|
|
import { createTests, tailwindRunner } from "./runner";
|
|
|
|
const scenarios: Record<string, TextStyle["alignSelf"]> = {
|
|
auto: "auto",
|
|
start: "flex-start",
|
|
end: "flex-end",
|
|
center: "center",
|
|
stretch: "stretch",
|
|
baseline: "baseline",
|
|
};
|
|
|
|
tailwindRunner(
|
|
"Layout - Align Self",
|
|
createTests("self", scenarios, (n) => ({ alignSelf: n }))
|
|
);
|