It seems like onClick doesn't quite work with mobile, however it works fine on a desktop browser. What is the best way to do this on mobile - know when an element is pressed?
Here's how I'm using it in my return statement:
...
return (
<div>
<div
className={"bus-route-number " + this.props.data.busNumber}
onClick={this.toggleShowDestination}
>
<h1>{this.props.data.busNumber}</h1>
<h4>{this.props.data.fullRoute}</h4>
</div>
{destinations}
</div>
)
...