Description
This widget, based on the bar chart widget, show stars and fills in the correct percentage. We use it for monitoring the app store feedback.
Usage:
In erb file:
| /** | |
| * @flow | |
| */ | |
| import React, { Component } from 'react'; | |
| import { | |
| AppRegistry, | |
| StyleSheet, | |
| Text, | |
| Image, |
| /** | |
| * @flow | |
| */ | |
| import React, { Component } from 'react'; | |
| import { | |
| AppRegistry, | |
| StyleSheet, | |
| Text, | |
| Image, |
| const ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2}); | |
| this.state = { | |
| dataSource: ds.cloneWithRows([ | |
| {name: 'Scotty and the Reverbs', | |
| genre: 'Rock', | |
| location: 'Durham, NC', | |
| pic: 'https://gp1.wac.edgecastcdn.net/802892/http_public_production/artists/images/149/original/resize:248x186/crop:x0y0w800h600/BF7A56BB-6FD6-46BB-A0F1-14C5542FF1FB-6197-00000F368AE237CD.jpg?1478787906'}, | |
| {name: 'Gianna Salvato', | |
| genre: 'Pop / Soul', | |
| location: 'New York, NY', |