GithubHelp home page GithubHelp logo

femotizo / react-native-view-finder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tiaanduplessis/react-native-view-finder

0.0 2.0 0.0 104 KB

A flexible little View Finder component to be used in conjunction with react-native-camera

License: MIT License

JavaScript 100.00%

react-native-view-finder's Introduction

react-native-view-finder

A flexible little View Finder component to be used in conjunction with react-native-camera



Built with ❤︎ by tiaanduplessis and contributors

Table of Contents

Table of Contents
  • Install
  • Usage
  • Contribute
  • License
  • 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

    Prop Description Type Defualt
    containerStyle Array Container Styles Array {}
    backgroundColor String for Background color of View Finder. String transparent
    color String for Color of the View finder edges String #FFF
    height Number for Height of View Finder Number 200
    width Number for Width of View Finder Number 200
    borderWidth Number for Border with of View Finder edges Number 3
    borderRadius Number for Border Radius of View Finder edges Number 0
    borderLength Number for Border length of View Finder edges Number 25
    loading Bool for the indicate if loading indicator should be shown Bool false
    loadingColor String for Color of the loading indicator String #FFF
    loadingBelowVF Bool for the indicate if loading indicator should be shown under View Finder Bool false

    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.

    react-native-view-finder's People

    Contributors

    tiaanduplessis avatar burnsy avatar greenkeeper[bot] avatar imgbotapp avatar

    Watchers

    James Cloos avatar Epebinu Oluwafemi avatar

    Recommend Projects

    • React photo React

      A declarative, efficient, and flexible JavaScript library for building user interfaces.

    • Vue.js photo Vue.js

      🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    • Typescript photo Typescript

      TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    • TensorFlow photo TensorFlow

      An Open Source Machine Learning Framework for Everyone

    • Django photo Django

      The Web framework for perfectionists with deadlines.

    • D3 photo D3

      Bring data to life with SVG, Canvas and HTML. 📊📈🎉

    Recommend Topics

    • javascript

      JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

    • web

      Some thing interesting about web. New door for the world.

    • server

      A server is a program made to process requests and deliver data to clients.

    • Machine learning

      Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

    • Game

      Some thing interesting about game, make everyone happy.

    Recommend Org

    • Facebook photo Facebook

      We are working to build community through open source technology. NB: members must have two-factor auth.

    • Microsoft photo Microsoft

      Open source projects and samples from Microsoft.

    • Google photo Google

      Google ❤️ Open Source for everyone.

    • D3 photo D3

      Data-Driven Documents codes.