0.0.2 • Published 7 years ago

rn-loading-hoc v0.0.2

Weekly downloads
2
License
MIT
Repository
-
Last release
7 years ago

React Native Loading HOC

Usage

import React from 'react'
import loadingHoc from 'rn-loading-hoc'

const Post = ({ title }) => (
  <Text>{title}</Text>
)

export default loadingHoc(
  (props) => props.isLoading, // predicate fn (wheter the overlay should be active or not)
  { overlayColor: 'rgba(0,0,0,.6)' } // options
)(Post)