React Native
Getting Started
Integrate skeletons into your react-native project quickly and easily using Skel UI in minutes.
Install package
Install Skel UI into your project via command line.
Add Skel Provider
Wrap your application with Skel UI provider.
Implement Skel UI
Consider a PostCard component that shows a spinner while the data is being fetched.
Let's replace the spinner loading with skeleton loading. To accomplish this, just follow two steps:
- Replace the ternary operator with
<Skel.Root>
. - Substitute your react-native elements with Skel UI elements (e.g.,
RN.Text
becomesSkel.Text
).
You'll notice the loading:
and loaded:
variants in the Tailwind classes. Learn more about them on the next page.