obipawan / react-native-dash

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

do not throw for undefined style property #7

Closed garthenweb closed 7 years ago

garthenweb commented 7 years ago

When no style property is defined, StyleSheet.flatten will return undefined which throws an error when accessed to get the flex direction. To fix it this commit will add an empty object as a fallback.

This is an issue I introduced with #4. It would be good to have this merged before creating a new npm package.

obipawan commented 7 years ago

thank you @garthenweb 👍

obipawan commented 7 years ago

available on v0.0.5 much appreciated @garthenweb