1.2.0 • Published 7 years ago

react-native-view-finder v1.2.0

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

Install

$ npm install react-native-view-finder
# OR
$ yarn add react-native-view-finder

Usage

import {View, StyleSheet} from 'react-native'
import ViewFinder from 'react-native-view-finder'

const Example = () => (
  <View style={styles.container}>
    <ViewFinder backgroundColor="#333" loading />
  </View>
)

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

This will result in:

Props

PropDescriptionTypeDefualt
containerStyleArray Container StylesArray{}
backgroundColorString for Background color of View Finder.Stringtransparent
colorString for Color of the View finder edgesString#FFF
heightNumber for Height of View FinderNumber200
widthNumber for Width of View FinderNumber#200
borderWidthNumber for Border with of View Finder edgesNumber3
borderRadiusNumber for Border Radius of View Finder edgesNumber0
borderLengthNumber for Border length of View Finder edgesNumber25
loadingBool for the indicate if loading indicator should be shownBoolfalse
loadingColorString for Color of the loading indicatorString#FFF
loadingBelowVFBool for the indicate if loading indicator should be shown under View FinderBoolfalse

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

Licensed under the MIT License.

1.2.0

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago