Available components

There are only three components exposed by the library

Placeholder

It's the wrapper around all of the other components. Using alone will not produce anything interesting. You have put some line or media inside to make it powerful.

It accepts all the props of a React Native View plus:

  • Animation: An optional animation component
  • Left: An optional component to display on the left side
  • Right: An optional component to display on the right side

PlaceholderLine

A PlaceholderLine is one of the two basic and visual components of a placeholder.

This is an example using react-native-web. If you want to run it on a real device, check this Snack project

PlaceholderMedia

A PlaceholderMedia is the second of the two basic and visual components of a placeholder. It can be used a single placeholder like following:

This is an example using react-native-web. If you want to run it on a real device, check this Snack project

But they become really cool components when associated with the Placeholder and the PlaceholderLine ones:

This is an example using react-native-web. If you want to run it on a real device, check this Snack project