Skip to content

No cancel button on Picker component #2557

Closed
@castusoft

Description

@castusoft

Picker's useWheelPicker modal is missing cancelLabel button even if I set it. Plus no matter how I apply styles, it is not getting it.

<Picker
            label="Trip type"
            useWheelPicker
            value={tripType}
            onChange={nativePickerValue => setTripType(nativePickerValue)}
            trailingAccessory={<ReloadSvg width={24} height={24} fill='black'/>}
            containerStyle={{borderWidth: 1, borderColor: Colors.grey50, padding: 3}}
            topBarProps={{
              doneLabel: 'Ok',
              cancelLabel: 'NO',
              title: 'Trip type',
              useSafeArea: true,
              includeStatusBar: true,
              titleStyle: {color: 'red'},
              containerStyle: {backgroundColor: 'red'}
          }}
          >
            {_.map(options, option => (
              <Picker.Item key={option.value} value={option.value} label={option.label} disabled={option.disabled}/>
            ))}
          </Picker>

Related to

  • [ x ] Components
  • Demo
  • Docs
  • Typings

Screenshots/Video

IMG_5B7E5B224ACF-1

Environment

  • React Native version: 0.71.6
  • React Native UI Lib version: ^7.2.4

Affected platforms

  • Android
  • [ x ] iOS
  • Web

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions