
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
@skel-ui/react-native
Advanced tools
Lightweight and powerful skeleton loading library for React.
Skel UI resolves the challenges of implementing skeletons by eliminating the need to create dedicated loading screens and providing an easier way to manage skeleton states using React Context.
See the comparision here.
Wrap your application with Skel UI provider.
import * as Skel from "@skel-ui/react-native";
export default function App() {
return <Skel.Provider> ... </Skel.Provider>;
}
Now it's time for you to craft your user interface to life!
import * as Skel from "@skel-ui/react-native";
import RN from "react-native";
export default function PostCard() {
const { post, isLoading } = usePost();
return (
<Skel.Root isLoading={isLoading}>
<RN.View style={styles.card}>
<Skel.Image src={post?.image} style={styles.cardImage} />
<Skel.Text sw="65%" style={styles.cardTitle}>
{post?.title}
</Skel.Text>
<Skel.Text numberOfLines={3} style={styles.cardDescription}>
{post?.description}
</Skel.Text>
</RN.View>
</Skel.Root>
);
}
const styles = RN.StyleSheet.create({
card: {
width: 320,
padding: 10,
marginHorizontal: "auto",
borderWidth: 1,
borderColor: "#e2e8f0",
borderRadius: 8,
},
cardImage: {
borderRadius: 4,
aspectRatio: 800 / 530,
},
cardTitle: {
marginTop: 16,
marginBottom: 8,
fontSize: 24,
lineHeight: 28,
fontWeight: 800,
},
cardDescription: {
fontSize: 14,
lineHeight: 20,
},
});
Now, not only have you designed the skeleton, but you have also done the actual UI. Additionally, the skeleton state for the entire UI is handled in a single place at the <Skel.Root>
.
For full documentation, visit skel-ui.augustin.zip
FAQs
Lightweight and powerful skeleton loading library for React.
The npm package @skel-ui/react-native receives a total of 211 weekly downloads. As such, @skel-ui/react-native popularity was classified as not popular.
We found that @skel-ui/react-native demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.