'React Native Element type is invalid: expected a string Skeleton PlaceHolder Package
im trying to use this package Skeleton-PlaceHolder my React Native App i followed installtion steps and i tried both two ways to use this Package but when i run my app i get this [ Render ] error
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components)
Code :- App.js
import React from "react";
import { View } from "react-native";
import SkeletonPlaceholder from "./node_modules/react-native-skeleton-placeholder";
const App = () => {
return (
<SkeletonPlaceholder>
<View style={{ flexDirection: "row", alignItems: "center" }}>
<View style={{ width: 60, height: 60, borderRadius: 50 }} />
<View style={{ marginLeft: 20 }}>
<View style={{ width: 120, height: 20, borderRadius: 4 }} />
<View
style={{ marginTop: 6, width: 80, height: 20, borderRadius: 4 }}
/>
</View>
</View>
</SkeletonPlaceholder>
);
};
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

