MCPcopy
hub / github.com/Flipboard/react-canvas / getAlignItem

Function getAlignItem

lib/Layout.js:81–89  ·  view source on GitHub ↗
(node, child)

Source from the content-addressed store, hash-verified

79 }
80
81 function getAlignItem(node, child) {
82 if ('alignSelf' in child.style) {
83 return child.style.alignSelf;
84 }
85 if ('alignItems' in node.style) {
86 return node.style.alignItems;
87 }
88 return 'stretch';
89 }
90
91 function getFlexDirection(node) {
92 if ('flexDirection' in node.style) {

Callers 1

Layout.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…