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.

`rotate`s do not appear to work.

See original GitHub issue

I’ve tried making the simplest example with rotate and can’t get to the bottom of why it’s not working.

rotate* types expect a number, though I’m not sure what that number maps to. Degrees? Radians?

<Motion.View
  animate={{ rotate: 90 }}
  initial={{ rotate: 0 }}
  transition={{
    type: "timing",
    duration: 2000
  }}
  style={{ borderWidth: 1, height: 50, width: 50 }}
/>

Results in a box that just sits there, statically. I can verify that other transforms, like x and y work, but not any of the rotations.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kyleshevlincommented, Jun 21, 2022

Thank you for the quick responses. It is appreciated!

0reactions
jmeistrichcommented, Jun 21, 2022

Yes, skews should also be fixed by that change too. I just released a 2.1.9 that fixes the types for skews.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Auto Rotate Not Working on Android
Launch the Settings app on your Android phone. · Tap Display in the list of items. · Turn on the option that says...
Read more >
7 ways to fix Android screen rotation not working - Carlcare
Find and turn on the "Auto-rotate" tile in the quick-setting panel. You can also go to Settings > Display > Auto-rotate screen to...
Read more >
How to Fix It When Android Screen Won't Rotate - Lifewire
When troubleshooting an Android screen that won't rotate when you turn the phone sideways, look for the most common root cause.
Read more >
My Android Won't Auto-Rotate - What to Do - Technipages
Another reason why your Android device is not auto rotating is either because the G-sensor or the accelerometer is malfunctioning. First, run some...
Read more >
How to Fix- Auto Rotate Not Working on Android Phone!
This video will show you the best ways to fix screen rotation not working on any Android Phone. Though we have used a...
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