mirror of
https://github.com/zhigang1992/nativewind.git
synced 2026-06-13 01:18:18 +08:00
15 lines
374 B
TypeScript
15 lines
374 B
TypeScript
import { ViewStyle } from "react-native";
|
|
import { createTests, expectError, tailwindRunner } from "./runner";
|
|
|
|
const scenarios: Record<string, ViewStyle["maxWidth"]> = {
|
|
0: 0,
|
|
full: "100%",
|
|
"[18px]": 18,
|
|
};
|
|
|
|
tailwindRunner(
|
|
"Sizing - Max-Width",
|
|
createTests("max-w", scenarios, (n) => ({ maxWidth: n })),
|
|
expectError(["max-w-max", "max-w-max", "max-w-fit"])
|
|
);
|