eaeao / react-native-auto-placeholder-loading

React Native Package to automatically set a placeholder while your components are loading

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-auto-placeholder-loading

Getting started

$ npm i react-native-auto-placeholder-loading --save

or

$ yarn add react-native-auto-placeholder-loading

Usage

import { Text, View } from 'react-native';
import AutoPlaceholderLoading from 'react-native-auto-placeholder-loading';

const App = () => (
  <AutoPlaceholderLoading loading={isFetched}>
	  <View>
	  		<Text>Hello World</Text>
	  </View>
  </AutoPlaceholderLoading>
);

About

React Native Package to automatically set a placeholder while your components are loading


Languages

Language:JavaScript 76.6%Language:Ruby 23.4%