elicwhite/react-native-mask-loader
Tentang
React Native App Loader that shows an expanding image as a mask on your app. Direct rip of Twitter's loading animation.
Desain dan mediaPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- 0
- dalam 15 hari
- 0
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
Aslireact-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.

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:

Jelajahi proyek terkait
Memuat…