Skip to content
プロジェクト

elicwhite/react-native-mask-loader

GitHubで見る

概要

画像が拡大しながらアプリをマスクする、React Native向けのアプリローダーです。Twitterの読み込みアニメーションをそのまま再現しています。

制作・メディア

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
履歴を収集中
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

react-native-mask-loader

This component provides a loading screen for React Native apps that is meant to reproduce Twitter's app loading animation.

There is an accompanying blog post at https://facebook.github.io/react-native/blog/2018/01/18/implementing-twitters-app-loading-animation-in-react-native.html.

Loader

Installation

yarn add react-native-mask-loader

# or npm install react-native-mask-loader

Usage

import Loader from 'react-native-mask-loader';

<Loader
  isLoaded={this.state.appHasLoaded}
  imageSource={require('./assets/twitter.png')}
  backgroundStyle={styles.loadingBackgroundStyle}
>
  <AppContent />
</Loader>

Demo

The gif above looks a bit stuttery, but it feels quite smooth on a real device.

In the example directory is a basic app created with create-react-native-app demonstrating this component. Running code is the best documentation so check it out to understand how it works.

It is published to expo and you should check it out on your device via the expo app:

Loader

関連プロジェクトを探す

読み込み中…