rn-placeholder

?️Display some placeholder stuff before rendering your text or media content in React Native

Github stars Tracking Chart

Build Status
License: MIT

Display some placeholder stuff before rendering your text or media content in React Native. Compatible with Expo and react-native-web.


Image of the placeholder in action

Usage

Installation

$ yarn add rn-placeholder

In your code

import {
  Placeholder,
  PlaceholderMedia,
  PlaceholderLine,
  Fade
} from "rn-placeholder";

const App = () => (
  <Placeholder
    Animation={Fade}
    Left={PlaceholderMedia}
    Right={PlaceholderMedia}
  >
    <PlaceholderLine width={80} />
    <PlaceholderLine />
    <PlaceholderLine width={30} />
  </Placeholder>
);

The v3 comes with an example app that provides different stories and example of the library:

Run the example apps

You can modify any call of yarn by npm install

To start the mobile app:

$ git clone https://github.com/mfrachet/rn-placeholder
$ cd rn-placeholder
$ yarn
$ cd ./example && yarn && yarn start

To start the web app:

$ git clone https://github.com/mfrachet/rn-placeholder
$ cd rn-placeholder
$ yarn
$ cd ./example-web && yarn && yarn start

The web app is also available in this github pages: https://mfrachet.github.com/rn-placeholder.

V3 features

Main metrics

Overview
Name With Ownermfrachet/rn-placeholder
Primary LanguageTypeScript
Program languageJavaScript (Language Count: 2)
Platform
License:MIT License
所有者活动
Created At2017-05-07 16:22:54
Pushed At2023-01-26 13:18:17
Last Commit At2022-10-24 14:02:37
Release Count6
Last Release Namev2.0.0 (Posted on )
First Release Namev1.0.0 (Posted on )
用户参与
Stargazers Count2.1k
Watchers Count12
Fork Count184
Commits Count100
Has Issues Enabled
Issues Count62
Issue Open Count7
Pull Requests Count64
Pull Requests Open Count17
Pull Requests Close Count84
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private