React-native-ui-kitten: Select requires props onFocus, onBlur

Created on 13 Feb 2020  路  3Comments  路  Source: akveo/react-native-ui-kitten

馃悰 Bug Report

The select component now requires _onFocus_ and _onBlur_ properties in version 4.4.0.

To Reproduce

Steps to reproduce the behavior:

<Select data={this.programOptions} label="Program" onSelect={option => this.onSelect(option)} />

Expected behavior

Before version 4.4.0 onFocus and onBlur were not required by the Prop types for the select component. onFocus and onBlur should be optional props.

Link to runnable example or repository (highly encouraged)

馃槆

UI Kitten and Eva version

| Package | Version |
| ----------- | ----------- |
| @eva-design/eva | 1.3.0 |
| @ui-kitten/components | 4.4.0 |

Environment information

react-native run-ios

Most helpful comment

The fix is already present in master https://github.com/akveo/react-native-ui-kitten/pull/877 and will be included in the next release

All 3 comments

I meet the same i end up by overriding select ui-kitten SelectProps: type MySelectProps = Omit & {
onFocus?: () => void;
onBlur?: () => void;
}

The fix is already present in master https://github.com/akveo/react-native-ui-kitten/pull/877 and will be included in the next release

@artyorsh thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sarmadkung picture sarmadkung  路  3Comments

jeloagnasin picture jeloagnasin  路  3Comments

eyalyoli picture eyalyoli  路  3Comments

simonsankar picture simonsankar  路  3Comments

PORA69 picture PORA69  路  3Comments