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

Cannot read property 'Part' of undefined #3010

Closed
3 tasks
joeyslack opened this issue Apr 1, 2024 · 0 comments
Closed
3 tasks

Cannot read property 'Part' of undefined #3010

joeyslack opened this issue Apr 1, 2024 · 0 comments
Labels
bug a bug in one of the components

Comments

@joeyslack
Copy link

Description

Rendering error when using <ListItem.Part> in a ListItem

Following docs: https://wix.github.io/react-native-ui-lib/docs/components/lists/ListItem/ListItem.Part and sample: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/BasicListScreen.tsx

Related to

  • [ x] Components
  • Demo
  • Docs
  • Typings

Steps to reproduce

Nest a <ListItem.Part> inside of a ListItem

Expected behavior

According to the docs, we should be able to use Parts, ie: https://wix.github.io/react-native-ui-lib/docs/components/lists/ListItem/ListItem.Part

Actual behavior

Receive a rendering error: `Cannot read property 'Part' of undefined

More Info

There seem to be some historical issues related to this:

Affected platforms

  • [x ] Android
  • [ x] iOS
  • [ x] Web

Affected versions

Fresh install of current date of npm install react-native-ui-lib

@joeyslack joeyslack added the bug a bug in one of the components label Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug a bug in one of the components
Projects
None yet
Development

No branches or pull requests

1 participant