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

undefined is not an object (evaluating 'child.type.displayName') #48

Open
alexdieudonne opened this issue May 14, 2021 · 3 comments
Open

Comments

@alexdieudonne
Copy link

undefined is not an object (evaluating 'child.type.displayName')
An error occured when i tried to use instead of using <SkeletonPlaceholder.Item> i solved this issue by adding ? every time child is required and doesn't exist in SkeletonPlaceHolder.js.
let style;
if (child?.type?.displayName === "SkeletonPlaceholderItem") { const _a = child.props, { children } = _a, styles = __rest(_a, ["children"]); style = styles; } else { style = child?.props?.style; } if (child?.props?.children) { return (<react_native_1.View key={index} style={style}> {getChildren(child.props.children)} </react_native_1.View>); }

@hanifmhd
Copy link

i got same error

@chramos
Copy link
Owner

chramos commented Jun 16, 2021

hey @alexdieudonne I'll fix it up

@Mursivic
Copy link

hey, @chramos is there any solution for this issue?

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

4 participants