diff --git a/.changeset/witty-files-cheer.md b/.changeset/witty-files-cheer.md new file mode 100644 index 0000000..bfac703 --- /dev/null +++ b/.changeset/witty-files-cheer.md @@ -0,0 +1,5 @@ +--- +"nativewind": patch +--- + +fix: add missing flexBasis from flex-1 diff --git a/packages/nativewind/src/postcss/to-react-native/properties/flex.ts b/packages/nativewind/src/postcss/to-react-native/properties/flex.ts index 9e6e837..6072b72 100644 --- a/packages/nativewind/src/postcss/to-react-native/properties/flex.ts +++ b/packages/nativewind/src/postcss/to-react-native/properties/flex.ts @@ -2,7 +2,7 @@ import { getStylesForProperty } from "css-to-react-native"; import { PropertyFunction } from "./only"; export const flex: PropertyFunction<"flex"> = (value, name) => { - const { flexGrow, flexShrink } = getStylesForProperty(name, value); - return { flexGrow, flexShrink }; + const { flexGrow, flexShrink, flexBasis } = getStylesForProperty(name, value); + return { flexGrow, flexShrink, flexBasis }; }; flex.prop = "flex";