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

[Android] Rotating screens makes app restart to initial scrren #14971

Closed
andreecosta opened this issue Jul 12, 2017 · 1 comment
Closed

[Android] Rotating screens makes app restart to initial scrren #14971

andreecosta opened this issue Jul 12, 2017 · 1 comment
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@andreecosta
Copy link

andreecosta commented Jul 12, 2017

Is this a bug report?

Yes

Have you read the Bugs section of the Contributing to React Native Guide?

Yes

Environment

  1. react-native -v: 0.46.0
  2. node -v: 7.9.0
  3. npm -v: 4.2.0

Then, specify:

  1. Target Platform (e.g. iOS, Android): Android
  2. Development Operating System (e.g. macOS Sierra, Windows 10): macOS Sierra
  3. Build tools (Xcode or Android Studio version, iOS or Android SDK version, if relevant): not relevant

Steps to Reproduce

(Write your steps here:)

  1. NPM install orientation package, and create a swiper with some images
  2. Then, click one of those images to open in landscape mode, by locking the screen with orientation package
  3. The image opens in a modal, with another swiper inside it

Expected Behavior

It should open the image in landscape mode.

Actual Behavior

When I click the image, the app resets to initial screen...
You can see it here:
https://vid.me/JHrFH

All I get is this error on Android Studio:
Receiver not registered: com.github.yamill.orientation.OrientationModule$1@5f236ab

And this one on console when debugging:
Trying to remove a child that doesn't exist

On iOS it works perfectly fine.

One more test: https://vid.me/yScfg

Reproducible Demo

I've tried making a reproducible demo but it actually worked. But on my app it's not working, and I really don't know why.

Demo worked like this:
https://vid.me/BkgUX

@hramos
Copy link
Contributor

hramos commented Jul 12, 2017

Thanks for opening the issue! It does not appear like a community member will be able to reliably reproduce this issue. This may be for several reasons; perhaps it affects a particular app but a minimal repro has not been provided, or the issue may be sporadic. As it happens, we need a concrete set of steps that can demonstrably reproduce the issue as this will allow your fellow community members to validate a fix. We'll close the issue for now, but feel free to submit a new issue once you're able to reliably reproduce the issue locally. Thanks for your understanding!

@hramos hramos closed this as completed Jul 12, 2017
@facebook facebook locked as resolved and limited conversation to collaborators Jul 12, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 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