GithubHelp home page GithubHelp logo

johnryan / react-native-user-feedback Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 765 KB

License: MIT License

JavaScript 9.06% Java 40.03% TypeScript 25.70% C 0.66% Objective-C 20.53% Swift 0.38% Ruby 3.64%

react-native-user-feedback's Introduction

react-native-user-feedback

Collect feedback from your users for any purpose. react-native-user-feedback is a flexible component for iOS and Android that allows you to render star or numeric feedback as well as provide your own custom renderer.

Installation

npm install react-native-user-feedback

or for Yarn

yarn add react-native-user-feedback

Usage

import UserFeedback from 'react-native-user-feedback';

// ...

<UserFeedback
  maxNumber={10}
  rating={numberRating}
  onRatingChanged={setNumberRating}
  renderRating={Number}
/>;
Prop Description Type Default
maxNumber the maximum range of the feedback number 5
rating The current rating number 0
onRatingChanged called when the user selects a new rating function null
renderRating callback for custom ratings function Star

Provided Renderers

Star

Provides a star based interface for feedback

Usage: Usage:

import { Star } from "react-native-user-feedback"

<UserFeedback
  maxNumber={10}
  rating={numberRating}
  onRatingChanged={setNumberRating}
  renderRating={Star}
/>;

Number

Provides a numeric interface for feedback

Usage:

import { Number } from "react-native-user-feedback"

<UserFeedback
  maxNumber={10}
  rating={numberRating}
  onRatingChanged={setNumberRating}
  renderRating={Number}
/>;

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

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.