Browse Source

FormField with optional `flex` props for better layout construction

master
GabrielTrettel 3 years ago
parent
commit
45623e3d7b
  1. 3
      src/app/components/forms/FormField.js

3
src/app/components/forms/FormField.js

@ -106,6 +106,7 @@ function AppFormField({
name, name,
width, width,
increaseDecreaseButtons = false, increaseDecreaseButtons = false,
flex = 0,
...otherProps ...otherProps
}) { }) {
const { const {
@ -118,7 +119,7 @@ function AppFormField({
} = useFormikContext(); } = useFormikContext();
return ( return (
<View>
<View flex={flex}>
<View <View
style={{ style={{
paddingLeft: 16, paddingLeft: 16,

Loading…
Cancel
Save