Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions src/TapRating.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import _ from 'lodash';

import React, { Component } from 'react';
import PropTypes from 'prop-types';

Expand Down Expand Up @@ -44,9 +42,7 @@ export default class TapRating extends Component {
}

renderStars(rating_array) {
return _.map(rating_array, (star, index) => {
return star
})
return rating_array.map((star) => star)
}

starSelectedInPosition(position) {
Expand All @@ -67,7 +63,7 @@ export default class TapRating extends Component {
starContainerStyle.push(this.props.starContainerStyle);
}

_.times(count, index => {
Array.apply(null, Array(count)).map((_, index) => (
rating_array.push(
<Star
key={index}
Expand All @@ -77,7 +73,7 @@ export default class TapRating extends Component {
{...this.props}
/>
)
})
))

return (
<View style={styles.ratingContainer}>
Expand Down