Closed
Description
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