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

Animate text opacity under iOS does sometimes not work #16269

Closed
marcesengel opened this issue Oct 10, 2017 · 2 comments
Closed

Animate text opacity under iOS does sometimes not work #16269

marcesengel opened this issue Oct 10, 2017 · 2 comments
Labels
Platform: iOS iOS applications. Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@marcesengel
Copy link
Contributor

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

Environment:
  OS:  macOS Sierra 10.12.6
  Node:  8.6.0
  Yarn:  Not Found
  npm:  5.3.0
  Watchman:  4.9.0
  Xcode:  Xcode 9.0 Build version 9A235
  Android Studio:  Not Found

Packages: (wanted => installed)
  react: ^16.0.0-alpha.12 => 16.0.0-alpha.12
  react-native: ^0.48.4 => 0.48.4

  Target Platform: iOS (11.0)

Steps to Reproduce

Create two animated Text components with

const AnimatedText = Animated.createAnimatedComponent(
  styled.Text``
)

Use two Animated.Value which you've gotten by interpolating one Animated.Value provided by a react-native-interactable in two different ways. Then use those two values to animate the opacity of two of those AnimatedText components, like that (I've only tried it with native animations).

Expected Behavior

I expected the first text to disappear, while the second one appears. When the second one is fully visible, it should start disappearing again and the first one should reappear.

Actual Behavior

One of the texts behaves as expected, while the second one doesn't get animated (it depends on which starts with a higher opacity - the one which does will work as expected, the other one won't get animated at all).

Reproducible Demo

Quiet hard to set up. I've tried creating a snack with an easy animation using Animated.timing(), but using this the bug doesn't reproduce. In addition Snack doesn't support react-native-interactable. It also does not appear on Android and the animation works if I change the opacity of a view wrapping the text, meaning that it should not be a react-native-interactable bug.

If there's something willing to have a closer look at this, I'm willing to create an example project and publish it on github.

Greetings
DragonRaider5

@janicduplessis
Copy link
Contributor

Hey thanks for the issue! Could you share a normal RN project that repro the issue? Otherwise it will be pretty hard for us to have a look and fix.

Thanks!

@stale
Copy link

stale bot commented Dec 12, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Dec 12, 2017
@stale stale bot closed this as completed Dec 19, 2017
@facebook facebook locked and limited conversation to collaborators May 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Platform: iOS iOS applications. Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

2 participants