When I import and using Select component, issue is throw in above?
How can I fix that?
import React from 'react';
import { SafeAreaView, Text, View } from 'react-native';
import * as eva from '@eva-design/eva';
import { ApplicationProvider, IndexPath, Layout, Select, SelectItem } from '@ui-kitten/components';
const HomeScreen = () => {
const [selectedIndex, setSelectedIndex] = React.useState(new IndexPath(0));
return (
selectedIndex={selectedIndex}
onSelect={index => setSelectedIndex(index)}
>
);
}
export default () => (
);
I'm having the same issue.
I can't help without seeing your configuration. Please include a package.json
And for the future questions make sure to follow the issue template you delete when opening a new issue.
@artyorsh removing "evaStyle" from createElement(chevronDown_component_1.ChevronDown... in select.component.js removes the error. I'm unsure what to do next. (v5 alpha)
@NguyenPhatBG You can temporarily fix this issue by adding a accessoryRight prop to Select.
I ran into the same issue, here's how to fix it in select.component.tsx:
private renderDefaultIconElement = ({tintColor, ...evaStyle}): React.ReactElement => {
return (
<Animated.View style={{ transform: [{ rotate: this.expandToRotateInterpolation }] }}>
<ChevronDown {...evaStyle} fill={tintColor}/>
</Animated.View>
);
};
Otherwise, like @WilliamBlais noticed, you pass a tintColor prop to the icon instead of using only the fill prop.
Hello 馃憢
Instead of patching dependency sources, use [email protected]. There was a breaking change in future releases of that library, and I鈥檒l mention that in the docs soon.
Thanks for reporting.
Most helpful comment
Hello 馃憢
Instead of patching dependency sources, use
[email protected]. There was a breaking change in future releases of that library, and I鈥檒l mention that in the docs soon.Thanks for reporting.