let stars = []; // Loop 5 times for (var i = 1; i <= 5; i++) { // set the path to filled stars let path = require('./star-filled.png'); if (i > this.state.cRating) { path = require('./star-unfilled.png'); } stars.push((<TouchableHighlight onPress={ _ => this._RateApp(i) }><Image style={styles.image} source={path} /></TouchableHighlight>)); }
this._RateApp(i)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)