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:
committed by
Facebook Github Bot
parent
ae9703712a
commit
b318c4c5c9
@@ -14,17 +14,17 @@ import {Record} from 'immutable';
|
||||
import type {RecordOf} from 'immutable';
|
||||
|
||||
export type PositionRecordT = RecordOf<{
|
||||
top: string,
|
||||
right: string,
|
||||
bottom: string,
|
||||
left: string,
|
||||
top: string | number,
|
||||
right: string | number,
|
||||
bottom: string | number,
|
||||
left: string | number,
|
||||
}>;
|
||||
|
||||
const r: PositionRecordT = Record({
|
||||
top: '',
|
||||
right: '',
|
||||
bottom: '',
|
||||
left: '',
|
||||
top: 0,
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
left: 0,
|
||||
});
|
||||
|
||||
export default r;
|
||||
|
Reference in New Issue
Block a user