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

Part seems to be missing again from ListItem (ts) #2367

Closed
2 tasks
BryanEuton opened this issue Dec 11, 2022 · 1 comment
Closed
2 tasks

Part seems to be missing again from ListItem (ts) #2367

BryanEuton opened this issue Dec 11, 2022 · 1 comment
Labels
bug a bug in one of the components wontfix

Comments

@BryanEuton
Copy link

When using ListItem.Part like the example in the demo site, a runtime error occurs when trying to render the page:
undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[5], "react-native-ui-lib").ListItem.Part')
I believe this is related to an old bug that was patched: #1529.

Related to

  • Components
  • Typings

Steps to reproduce

Create ts project, include react-native-ui-lib, try to render a ListItem utilizing ListItem.Part.

Expected behavior

The list to display

Actual behavior

Runtime error causing crash: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[5], "react-native-ui-lib").ListItem.Part')

More Info

Code snippet

I reduced my code to be simpler in case the error was not related to react-native-ui-lib.

...Other Code....
const renderItem = ({item}) => {
  return (
    <View>
      <ListItem>
        <ListItem.Part>
          <Text>Test</Text>
        </ListItem.Part>
      </ListItem>
    </View>
  );
};```

### Environment
    "react-native": "0.69.3",
    "react-native-ui-lib": "^6.25.0",

### Affected platforms

- [ ] Android
- [ ] iOS
- [ ] Web
@BryanEuton BryanEuton added the bug a bug in one of the components label Dec 11, 2022
@stale
Copy link

stale bot commented Feb 18, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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 wontfix
Projects
None yet
Development

No branches or pull requests

1 participant