mirror of
https://github.com/zhigang1992/nativewind.git
synced 2026-06-13 01:18:18 +08:00
15 lines
347 B
TypeScript
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 }))
|
|
);
|