obipawan / react-native-dash

A super simple <Dash /> component for react-native to draw customisable dashed lines
176 stars 63 forks source link

Height of Dash not automatic scale with it's parent #23

Closed TechGuyVN closed 5 years ago

TechGuyVN commented 5 years ago

Hi,

When i set flex:1 Dash height full screen, only work when i set height is constant , exp 100 how can dash auto scale by height of it's parent

obipawan commented 5 years ago

If you have a nested layout, you'd need to typically set flex: 1 to each of the node leading to the Dash component. Dash simply uses the onLayout to measure the set height | width depending on the flexDirection