upgrade yoga-layout

Summary:
- upgraded to yoga-layout@1.9.3
- set default values correctly
- catch errors

Reviewed By: emilsjolander

Differential Revision: D7001154

fbshipit-source-id: 49527576c61ce109ba0af0f50c981cf5c2c7d41a
This commit is contained in:
Daniel Büchele
2018-02-15 16:42:43 -08:00
committed by Facebook Github Bot
parent ae9703712a
commit b318c4c5c9
8 changed files with 70 additions and 65 deletions

View File

@@ -51,8 +51,8 @@ export type LayoutRecordT = RecordOf<{
}>;
const r: LayoutRecordT = Record({
width: 100,
height: 100,
width: 'auto',
height: 'auto',
justifyContent: yoga.JUSTIFY_FLEX_START,
alignItems: yoga.ALIGN_STRETCH,
alignSelf: yoga.ALIGN_AUTO,
@@ -69,10 +69,10 @@ const r: LayoutRecordT = Record({
flexShrink: 1,
children: List(),
aspectRatio: 'auto',
minWidth: undefined,
maxWidth: undefined,
minHeight: undefined,
maxHeight: undefined,
minWidth: NaN,
maxWidth: NaN,
minHeight: NaN,
maxHeight: NaN,
});
export default r;