fateh999 / react-native-paper-form-builder

React Native Paper Form Builder with inbuilt Validation, dropdown, autocomplete, checkbox, switch and radio inputs.
MIT License
116 stars 25 forks source link

Any way to specify the width of a column? #37

Closed dk253 closed 3 years ago

dk253 commented 3 years ago

Hey, I very much appreciate your work on this.

Is there any way to specify the width of a column, or is it just equal percents for the columns?

For example, I have City, State, Postal code columns. I'd like to give the city 50% and the state and postal 20% and 30% respectively.

Thanks!

fateh999 commented 3 years ago

Thanks, for now it is equivalent size but will provide an option of variable sized column in next update

fateh999 commented 3 years ago

@dk253 added a flex prop in the config object in the latest version, use it to manipulate width.

dk253 commented 3 years ago

Excellent! Thanks!! (works great)