diff --git a/src/__tests__/Layout-test.js b/src/__tests__/Layout-test.js index 3eddd369..9ae524ba 100755 --- a/src/__tests__/Layout-test.js +++ b/src/__tests__/Layout-test.js @@ -2397,3 +2397,20 @@ describe('Layout alignContent', function() { testAlignContent('flex-end', 'flex-end'); testAlignContent('flex-end', 'stretch'); }); + +describe('nested flex', function() { + it('should stretch a nested child', function() { + testLayout( + {children: [ + {children: [{}]}, + {style: {width: 40}} + ]}, + {width: 40, height: 0, top: 0, left: 0, children: [ + {width: 40, height: 0, top: 0, left: 0, children: [ + {width: 40, height: 0, top: 0, left: 0} + ]}, + {width: 40, height: 0, top: 0, left: 0} + ]} + ); + }); +});