rn-loading-hoc
v0.0.2
Published
Loading HOC for React.
Downloads
2
Readme
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)