Fix componentkit generator (#785)
Summary: Fixes some inconsistencies in yoga playground Closes https://github.com/facebook/yoga/pull/785 Reviewed By: danielbuechele Differential Revision: D8480993 Pulled By: alickbass fbshipit-source-id: 395d77bae28462d3e03d666287bdc64137b84c68
This commit is contained in:
committed by
Facebook Github Bot
parent
c5f826de83
commit
2ce219ef42
@@ -137,9 +137,9 @@ function getLayoutCode(
|
||||
)}\n${indent}\t},`,
|
||||
),
|
||||
);
|
||||
lines.push(indent + `}]${isRoot ? ';' : ''}`);
|
||||
lines.push(indent + `}]${isRoot ? ';' : ','}`);
|
||||
} else {
|
||||
lines[lines.length - 1] += ']';
|
||||
lines[lines.length - 1] += '],';
|
||||
CKFlexboxComponentChild.forEach(key => {
|
||||
let line = renderKey(node, key, indent);
|
||||
if (line) {
|
||||
@@ -165,7 +165,7 @@ function renderKey(node: Yoga$Node, key: string, indent: string): ?string {
|
||||
);
|
||||
}
|
||||
|
||||
['top', 'left', 'right', 'bottom'].forEach(pKey => {
|
||||
['top', 'start', 'end', 'bottom'].forEach(pKey => {
|
||||
if (node[key][pKey]) {
|
||||
lines.push(indent + `\t.${pKey} = ${getValue(node[key][pKey])},`);
|
||||
}
|
||||
|
Reference in New Issue
Block a user