Skip to content

tiaanduplessis/nanokit-spinner-overlay

Repository files navigation

nanokit-spinner-overlay

Package version Package version Greenkeeper badge Make a pull request License npm downloads Travis CI build status

A spinning overlay component for React Native

Table of Contents

Install

$ npm install nanokit-spinner-overlay
# OR
$ yarn add nanokit-spinner-overlay

Usage

import React from 'react'
import {View, StyleSheet} from 'react-native'
import SpinnerOverlay from 'nanokit-spinner-overlay'

const ExampleOne = () => <View style={styles.container}>
    <SpinnerOverlay visible={true}/>
</View>

const ExampleOne = () => <View style={styles.container}>
    <SpinnerOverlay container containerStyle={{backgroundColor: 'red'}} color="pink" overlayColor="blue"/>
</View>

const styles = StyleSheet.create({
  container: {flex: 1}
})

See the available props for more info

Contributing

Contributions are welcome!

  1. Fork it.
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Or open up a issue.

License

MIT