react-native-auto-placeholder-loading

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

Usage no npm install needed!

<script type="module">
  import reactNativeAutoPlaceholderLoading from 'https://cdn.skypack.dev/react-native-auto-placeholder-loading';
</script>

README

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