diff --git a/website/src/components/Playground/CodeReactNative.js b/website/src/components/Playground/CodeReactNative.js index 16e0b92e..aa4da42a 100644 --- a/website/src/components/Playground/CodeReactNative.js +++ b/website/src/components/Playground/CodeReactNative.js @@ -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])},` ); } });