@@ -77,10 +77,7 @@ export default function DropDownPickerExample({
7777 const [ _items , setItems ] = useState < Array < ItemType < string > > > ( items ) ;
7878
7979 return (
80- < View style = { {
81- ...styles . exampleContainer ,
82- zIndex : open ? 10 : 1
83- } } >
80+ < View style = { { ...styles . exampleContainer , zIndex : open ? 10 : 1 } } >
8481 < View >
8582 < Text style = { { ...styles . title , color} } > { title } </ Text >
8683 { description && (
@@ -116,22 +113,23 @@ export default function DropDownPickerExample({
116113 { ...dropdownProps }
117114 />
118115 ) }
119- < View style = { { ...styles . body } } >
120- < Text style = { { ...styles . description , color} } >
121- { multiple ? 'Fruits currently are: ' : 'Fruit currently is: ' }
122- { multiple
123- ? JSON . stringify ( multiValue )
124- : JSON . stringify ( singleValue ) }
125- </ Text >
126116
127- < Button
128- title = { multiple ? 'Clear fruits' : 'Clear fruit' }
129- onPress = { ( ) : void => {
130- if ( multiple ) setMultiValue ( null ) ;
131- else setSingleValue ( null ) ;
132- } }
133- />
134- </ View >
117+ < View style = { { ...styles . body } } >
118+ < Text style = { { ...styles . description , color} } >
119+ { multiple ? 'Fruits currently are: ' : 'Fruit currently is: ' }
120+ { multiple
121+ ? JSON . stringify ( multiValue )
122+ : JSON . stringify ( singleValue ) }
123+ </ Text >
124+
125+ < Button
126+ title = { multiple ? 'Clear fruits' : 'Clear fruit' }
127+ onPress = { ( ) : void => {
128+ if ( multiple ) setMultiValue ( null ) ;
129+ else setSingleValue ( null ) ;
130+ } }
131+ />
132+ </ View >
135133 </ View >
136134 ) ;
137135}
0 commit comments