diff --git a/packages/cli/src/ui/components/shared/MaxSizedBox.tsx b/packages/cli/src/ui/components/shared/MaxSizedBox.tsx index 8880e894..c803b680 100644 --- a/packages/cli/src/ui/components/shared/MaxSizedBox.tsx +++ b/packages/cli/src/ui/components/shared/MaxSizedBox.tsx @@ -278,7 +278,10 @@ function visitBoxRow(element: React.ReactNode): Row { // Allow the key prop, which is automatically added by React. maxExpectedProps += 1; } - if (boxProps.flexDirection !== 'row') { + if ( + boxProps.flexDirection !== undefined && + boxProps.flexDirection !== 'row' + ) { debugReportError( 'MaxSizedBox children must have flexDirection="row".', element,