[9.2.0] alongside rn0.58 throws error when using `rotate: 90deg`
See original GitHub issueI updated to latest versions of react-native
and react-native-svg
And am now receiving following error
JSON value ‘{ rotate = 90deg }’ of type NSMutableDictionary cannot be converted to NSNumber
I don’t think error is related to upgrading react-native as I can successfully use deg
strings in other places of the app. Error happens when using style object on SVG
element like so
<Svg style={styles.container}>
//...
</Svg>
// ...
/**
* Styles
*/
const styles = StyleSheet.create({
container: {
transform: [
{
rotate: '90deg'
}
]
}
});
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
[9.2.0] alongside rn0.58 throws error when using `rotate: 90deg`
I updated to latest versions of react-native and react-native-svg And am now receiving following error JSON value '{ rotate = 90deg }' of ......
Read more >rotate() - CSS: Cascading Style Sheets - MDN Web Docs
The rotate() CSS function defines a transformation that rotates an element around a fixed point on the 2D plane, without deforming it.
Read more >Rotating videos with FFmpeg - Stack Overflow
First, -vfilters doesn't exist anymore, it's now just -vf. Second, I get this error: No such filter: 'rotate' Error opening filters! As far...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Published v9.2.2 with a few fixes for the new optimizations, here’s an example showing off some of it, and native animated transforms on the root element:
9.2.1 fixes the issue, thank you.