File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,18 @@ export default function AutoSizer({
2626 [ layout , setLayout ]
2727 )
2828
29+ const isLayoutInitialized = layout && layout . height > 0 && layout . width > 0
30+
2931 return (
3032 < View
3133 onLayout = { onLayout }
32- style = { [ sharedStyles . overflowHidden , sharedStyles . root , layout && layout ] }
34+ style = { [
35+ sharedStyles . overflowHidden ,
36+ sharedStyles . root ,
37+ isLayoutInitialized && layout ,
38+ ] }
3339 >
34- { layout ? children ( layout ) : null }
40+ { isLayoutInitialized ? children ( layout ) : null }
3541 </ View >
3642 )
3743}
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ export function HeaderContentRange({
216216 const formatter = useMemo ( ( ) => {
217217 return new Intl . DateTimeFormat ( locale , {
218218 month : 'short' ,
219- day : 'numeric'
219+ day : 'numeric' ,
220220 } )
221221 } , [ locale ] )
222222
You can’t perform that action at this time.
0 commit comments