Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TopNavigation's acessory prop problem in ui-kitten ^5 #1840

Open
Zzziiro opened this issue Dec 11, 2024 · 2 comments
Open

TopNavigation's acessory prop problem in ui-kitten ^5 #1840

Zzziiro opened this issue Dec 11, 2024 · 2 comments

Comments

@Zzziiro
Copy link

Zzziiro commented Dec 11, 2024

🐛 Bug Report

I'm trying to apply a ReactElement to my TopNavigation's accessoryLeft prop, but it wont accept it unless I make it a () => ReactElement though the node_modules says otherwise, even with this code error, it runs just fine.
This wouldn't be a huge problem but, when using the arrow function, the component doesn't respect the TopNavigation's placement or the screen space, just like it was 'absolute'.

Here's the code:

image
1

Here's the error:

image

Here's the node_modules:

image

Here's the same component, using () => ReactElement

image
2

Expected behavior

It should work fine using the ReactElement, just as it does with () => ReactElement, respecting the screen space and TopNavigation's position.

UI Kitten and Eva version

Package Version
@eva-design/eva ^2.2.0
@ui-kitten/components 5.3.1

Environment information

System:
OS: Linux 6.9 Pop!_OS 22.04 LTS
CPU: (8) x64 Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz
Binaries:
Node: 20.0.0 - ~/.nvm/versions/node/v20.0.0/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 9.6.4 - ~/.nvm/versions/node/v20.0.0/bin/npm
npmPackages:
react: 18.3.1 => 18.3.1
react-native: 0.76.3 => 0.76.3

@pedropaulovtz
Copy link

same problem here

@grazielatrres
Copy link

same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants