question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Opens Bottom Problem

See original GitHub issue

Hello everyone. My app start in feed, i reversed with react-native-invertible-scroll-view. But it starts bottom like whatsapp but I want to it starts on top like facebook homepage. Please help me!

  createDataSource({ studentsArray }) {
    const ds = new ListView.DataSource({
      rowHasChanged: (r1, r2) => r1 !== r2
    });
    this.dataSource = ds.cloneWithRows(studentsArray);
  }
  renderRow(ogrenci) {
      return <ListItem ogrenci={ogrenci} />;
    }
   </View>
           <ListView
            renderScrollComponent={props => <InvertibleScrollView {...props} inverted />}
             enableEmptySections
             dataSource={this.dataSource}
             renderRow={this.renderRow}
           />
        </View>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

3reactions
LouisJScommented, Feb 13, 2018

So you don’t need react-native-invertible-scroll-view. It is not about the layout, it is about your data. You need to reverse the order of your data array.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse

1reaction
ozicancommented, Feb 13, 2018

hey it worked!!! You are amazing man!!

  createDataSource({ studentsArray }) {
    const ds = new ListView.DataSource({
      rowHasChanged: (r1, r2) => r1 !== r2
    });
    this.dataSource = ds.cloneWithRows(studentsArray.reverse());
  }
Read more comments on GitHub >

github_iconTop Results From Across the Web

Anal fissure - NHS
An anal fissure is a tear or open sore (ulcer) that develops in the lining of the large intestine, near the anus. Anal...
Read more >
how to fix an element in bottom while the keyboard is open
When I open the keyboard he element goes to middle of the page. It's a normal situation 1. I want this second image....
Read more >
Bowel incontinence - Illnesses & conditions - NHS inform
Bowel incontinence is an inability to control bowel movements, resulting in involuntary soiling. It's also sometimes known as faecal incontinence.
Read more >
Hypospadias - Symptoms and causes - Mayo Clinic
Hypospadias is a birth defect in which the opening of the urethra is located on the underside of the penis instead of the...
Read more >
How to stop - Google chrome window opening bottom right of ...
Exit Chrome, navigate to your User Data folder (eg C:\Users\IanN\AppData\Local\Google\Chrome\User Data\Default), then open the file Preferences and look for ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found