/react-native-auto-placeholder-loading

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

Primary LanguageJavaScript

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>
);