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.

Style property 'width' is not supported by native animated module

See original GitHub issue

Issue Description When I click on the menu button it gives me an error Style property ‘width’ is not supported by native animated module This was working fine in 1.0.0 but it is broken in version 1.1.1

Expected Results Should show the menu on click

Additional Information React Native version:0.61 Platform(s) (iOS, Android, or both?):both Operating System (macOS, Linux, or Windows?): macOS

Steps to Reproduce / Code Snippets

 <Menu
          ref={this.setMenuRef}
          button={<Text onPress={this.showMenu}>Show menu</Text>}
>
          <MenuItem onPress={this.hideMenu}>Edit Comment</MenuItem>
          <MenuItem onPress={this.hideMenu}>Delete Comment</MenuItem>
</Menu>

Simulator Screen Shot - iPhone 8 - 2020-04-02 at 15 58 31

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
mxckcommented, Apr 2, 2020

Fixed in 1.1.2! Sorry for 1.1.1, I revoke this version from npm.

1reaction
anmolguptachicmiccommented, Apr 2, 2020

The problem is they add useNativeDriver: true, on Menu.js file

@anmolguptachicmic you can just comment this lines

4e4e767#diff-e359c93bc52c848fbef7e3bdc25527dbR68

4e4e767#diff-e359c93bc52c848fbef7e3bdc25527dbR74

4e4e767#diff-e359c93bc52c848fbef7e3bdc25527dbR104

Thanks, @joshuadiezmo this worked for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Style property 'width' is not supported by native animated ...
When adding it and setting it to 'yes', I got an error saying that " style property 'width' is not supported by native...
Read more >
Style property 'height' is not supported by native animated ...
I am using RN- 0.63.2 and I am facing the following issue "Style property 'height' is not supported by native animated module".
Read more >
React Native Animations: Part 2 – RPLabs – Rightpoint Labs
If you try to use an unsupported property, you'll get a message like “Style property 'height' is not supported by native animated module”....
Read more >
Using 'useNativeDriver' in react-native animations effectively
First we need to add “useNativeDriver: true” to our Animated.timing config. However, the backgroundColor style is not supported by the native ...
Read more >
Style Property 'Width' Is Not Supported By Native Animated ...
Animated operates on the JavaScript side of React Native and sends new style and updates across The main downside is that it is...
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