Why not use https://facebook.github.io/react-native/docs/touchableopacity.html#touchableopacity
instead of:
const TouchableElement = Platform.OS === 'android' ?
TouchableNativeFeedback :
TouchableHighlight;
Don't you get warnings about missing key?
renderRow={(comment) => <Comment {...comment} />}
Do you normally have actions in Constructor?
constructor(props) {
super(props);
const ds = new ListView.DataSource({ rowHasChanged: (r1, r2) => r1 !== r2 });
this.state = { dataSource: ds.cloneWithRows(this.props.comments) };
this.props.actions.fetchComments();
}
I would define dataSource in state like this:
this.state = { dataSource: new ListView.DataSource({ rowHasChanged: (r1, r2) => r1 !== r2 }) };
Why not use https://facebook.github.io/react-native/docs/touchableopacity.html#touchableopacity
instead of:
Don't you get warnings about missing key?
renderRow={(comment) => <Comment {...comment} />}Do you normally have actions in
Constructor?I would define dataSource in state like this:
this.state = { dataSource: new ListView.DataSource({ rowHasChanged: (r1, r2) => r1 !== r2 }) };