Fix position keys in generated React Native code
This commit is contained in:
@@ -96,9 +96,11 @@ function getLayoutCode(node: LayoutRecordT, indent: string = ''): string {
|
||||
) {
|
||||
lines.push(
|
||||
indent +
|
||||
` ${key}${pKey[0].toUpperCase()}${pKey.substr(1)}: ${getValue(
|
||||
node[key][pKey],
|
||||
)},`,
|
||||
` ${
|
||||
key === "position"
|
||||
? pKey
|
||||
: `${key}${pKey[0].toUpperCase()}${pKey.substr(1)}`
|
||||
}: ${getValue(node[key][pKey])},`
|
||||
);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user