Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS FlatList Rotation Bug #15337

Closed
jsonpar opened this issue Aug 2, 2017 · 2 comments
Closed

iOS FlatList Rotation Bug #15337

jsonpar opened this issue Aug 2, 2017 · 2 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@jsonpar
Copy link

jsonpar commented Aug 2, 2017

Is this a bug report?

Yes

Have you read the Bugs section of the How to Contribute guide?

Yes

Environment

  1. react-native -v:
    react-native-cli: 2.0.1
    react-native: 0.47.1
  2. node -v:
    v6.11.0
  3. npm -v:
    5.3.0

Then, specify:

  • Target Platform: iOS

  • Development Operating System: macOS 10.12.5

  • Build tools: No native code, built using react-native run-ios

Steps to Reproduce

(Write your steps here:)

  1. Create new react native project with react-native init RotationBug
  2. Replace the index.ios.js code with the code from https://snack.expo.io/B1P9GYJwb
  3. react-native run-ios
  4. Rotate phone emulator to landscape mode.
  5. Scroll to bottom of list view.
  6. Rotate back to portrait mode.

Expected Behavior

screen shot 2017-08-02 at 12 56 21 pm

Would rotate such that the bottom list element would be on the bottom of the screen, just as if they had scrolled to the bottom entirely in portrait mode.

Actual Behavior

screen shot 2017-08-02 at 12 56 09 pm

The bottom message ends up in the middle of the screen, with the remainder below it just being empty space. React native will re-render the list correctly if it is dragged, but not tapped.

This is iOS exclusive, on Android it exhibits expected behavior.

Reproducible Demo

https://snack.expo.io/B1P9GYJwb

The snack UI does not allow for rotation as far as I know, so to see the bug create a new Project with 'react-native init RotationBug', copy paste that code into index.ios.js, and run with react-native run-ios.

@shergin
Copy link
Contributor

shergin commented Aug 15, 2017

Duplicates #13566

@shergin
Copy link
Contributor

shergin commented Aug 15, 2017

Fixed in 1d22f8f .

@shergin shergin closed this as completed Aug 15, 2017
@facebook facebook locked as resolved and limited conversation to collaborators Aug 15, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Aug 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants