Browse Source

Flex attr as arg for searcheble plicker

master
GabrielTrettel 3 years ago
parent
commit
2d1d2f478b
  1. 18
      src/app/components/SearchablePicker.js

18
src/app/components/SearchablePicker.js

@ -79,6 +79,7 @@ function SearchablePicker({
marginRight = 2, marginRight = 2,
marginLeft = 16, marginLeft = 16,
doubleItemLine = false, doubleItemLine = false,
flex = 1,
}) { }) {
const { values, setFieldValue, errors, touched } = name const { values, setFieldValue, errors, touched } = name
? useFormikContext() ? useFormikContext()
@ -93,10 +94,12 @@ function SearchablePicker({
return ( return (
<View <View
style={[
styles.location,
{ marginLeft: marginLeft, marginRight: marginRight },
]}
style={{
marginLeft: marginLeft,
marginRight: marginRight,
flex: flex,
alignSelf: "flex-start",
}}
> >
<DropDown <DropDown
value={value} value={value}
@ -114,11 +117,4 @@ function SearchablePicker({
); );
} }
const styles = StyleSheet.create({
location: {
flex: 1,
alignSelf: "flex-start",
},
});
export default SearchablePicker; export default SearchablePicker;
Loading…
Cancel
Save