fix: added missing flexBasis to postcss flex property (#255)

* fix: added missing flexBasis to postcss flex property

* add changeset

Co-authored-by: Mark Lawlor <mwlawlor@gmail.com>
This commit is contained in:
mateusz-ramski
2022-09-26 12:15:13 +02:00
committed by GitHub
parent 716f2e7708
commit ca00130b48
2 changed files with 7 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
"nativewind": patch
---
fix: add missing flexBasis from flex-1

View File

@@ -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";