Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70435

Scroll React

$
0
0

@frippera wrote:

Trying to get scroll working in React with Ionic byt it wont work at all, no errors but list of cards i stuck.

class List extends Component<{ data: any }> {
  render() {
    const { data } = this.props;

    return (
      <IonApp>
        <IonHeader>
          <IonToolbar color="primary">
            <IonTitle>Items</IonTitle>
          </IonToolbar>
        </IonHeader>
        <IonContent>
          {
            data.map((item: any) => {
              return (
                <IonCard key={item.id}>
                  <IonCardHeader>
                    <IonCardSubtitle>{item.datetime}</IonCardSubtitle>
                    <IonCardTitle>{item.type}</IonCardTitle>
                  </IonCardHeader>
                  <IonCardContent>
                    {item.summary}
                  </IonCardContent>
                </IonCard>
              )
            })
          }
        </IonContent>
      </IonApp>
    );
  }
}

Any ideas?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>