-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Border not animating with scale #17224
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@wassgha I ran the snack and it was a different app example. Where is the snack for the GIF you posted? |
@zachgibson the snack is an isolated version of the bug that occurs inside the beta of our app (which you can see in the gif). I can invite you to the beta if you'd like but the effect is the same. The difference is that the animated value in our app is controlled by scroll rather than time. |
Same for me. Temporary downgrade to rn 0.49 works perfectly |
this was broken in 0.51.0 downgrade to 0.50.0 works. |
Reviewed By: achen1 Differential Revision: D5982241 fbshipit-source-id: 2f694daca7e1b16b5ff65f07c7d15dd558a4b7e8
Still broken in 0.52.2! |
Still broken for 0.53.0 Now using hack with Suppose |
This comment has been minimized.
This comment has been minimized.
The bug is still reproduced in 0.53.0. Does anyone have an idea how this could be possibly fixed? |
This is still an issue, just upgraded from 0.50 where it was working. Can this be reopened? |
Reopening as this was introduced in 0.48 and is still present as of 0.54 |
This comment has been minimized.
This comment has been minimized.
Hey @wassgha! I tried to reproduce this issue on v0.50.0, v0.51.0, and v0.55.0 of React Native, but wasn't able to. I v0.51.0 and v0.55.0 to reproduce the problem, and v0.50.0 to work fine. To attempt reproduction, I built React Native directly from the Github repository and plugged your code into RNTester. When the above setup didn't work, I used expo to run your snack on my S8, but still had no luck. I also created a new project using "dependencies": {
"expo": "^24.0.0",
"react": "16.3.1",
"react-native": "~0.51.0"
} Changes made to app.json: {
"expo": {
"sdkVersion": "24.0.0"
}
} With a brand new project running react native v0.51.0, I couldn't reproduce the problem. Observed Behaviour: What I see is a pulsating black circle surrounded by a red border, which I expect is the correct behaviour. It could be that I'm making a mistake somewhere. Does this problem still reproduce for you? |
Seems to have been fixed (for me at least), @VinceBT maybe? |
@wassgha Which version are you using ? |
@hramos, is this issue still a problem? |
I didn't upgrade to 0.55 but I could still see the issue on 0.53. |
If you're not using |
I am still having this exact same issue on 0.56. it only happens when borderRadius is set to a value bigger than 0. react: 16.4.1 => 16.4.1 I made a simple example on expo snack here. Scan the QR code with an Android 7.0 phone to reproduce the bug. |
@hramos I'm having this same issue on The issue that remains is when you try to animate an element that uses Device info: |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Environment:
OS: macOS High Sierra 10.13.2
Node: 8.5.0
Yarn: 1.1.0
npm: 5.3.0
Watchman: 4.9.0
Xcode: Xcode 9.1 Build version 9B55
Android Studio: 2.3 AI-162.4069837
Packages: (wanted => installed)
react: 16.0.0 => 16.0.0
react-native: ^0.51.0 => 0.51.0
Target Platform: Android (26+)
Steps to Reproduce
After upgrading to react-native 0.51.0, a component that used to be animated (scales up and down based on scroll) and that has a border (with border-radius too) no longer animates. The component itself still scales (verified by adding a background) but the borders don't. Since there has been a lot of work on borders in 0.51.0 I am assuming this has to do with that.
Steps
Animated.View
that has styles including a border. In my case this isand add an animated variable as its
transform: [{scale: ...}]
.2. Make sure you are using
react-native
0.51.03. Every aspect of the component will scale as the animated value changes, except for borders
Expected Behavior
Prior to upgrading to
0.51.0
the borders used to scaleActual Behavior
Reproducible Demo
https://snack.expo.io/Sk6o8ZWMG
(Works on Appetize but not on actual phone)
The text was updated successfully, but these errors were encountered: