mirror of
https://github.com/zhigang1992/nativewind.git
synced 2026-06-11 08:03:37 +08:00
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:
5
.changeset/witty-files-cheer.md
Normal file
5
.changeset/witty-files-cheer.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"nativewind": patch
|
||||
---
|
||||
|
||||
fix: add missing flexBasis from flex-1
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user