rn-placeholder

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

Github星跟踪图

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

主要指标

概览
名称与所有者mfrachet/rn-placeholder
主编程语言TypeScript
编程语言JavaScript (语言数: 2)
平台
许可证MIT License
所有者活动
创建于2017-05-07 16:22:54
推送于2023-01-26 13:18:17
最后一次提交2022-10-24 14:02:37
发布数6
最新版本名称v2.0.0 (发布于 )
第一版名称v1.0.0 (发布于 )
用户参与
星数2.1k
关注者数12
派生数184
提交数100
已启用问题?
问题数62
打开的问题数7
拉请求数64
打开的拉请求数17
关闭的拉请求数84
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?