Files
nativewind/__tests__/tailwindcss/align-self.ts
2022-04-29 18:06:46 +10:00

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 }))
);