Files
nativewind/__tests__/tailwindcss/text-align.ts
2022-05-03 16:34:19 +10:00

15 lines
347 B
TypeScript

import { TextStyle } from "react-native";
import { createTests, tailwindRunner } from "./runner";
const scenarios: Record<string, TextStyle["textAlign"]> = {
left: "left",
center: "center",
right: "right",
justify: "justify",
};
tailwindRunner(
"Typography - Text Align",
createTests("text", scenarios, (n) => ({ textAlign: n }))
);