You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>); }
The text was updated successfully, but these errors were encountered:
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>); }
The text was updated successfully, but these errors were encountered: