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
Unable to use scaleX, scaleY on <View> #1157
Comments
@amitverma - the documentation seems to be a bit unclear about this, this is how you need to specify it: <View style={{flex: 1, transform: [{translateY: 50}, {scaleX: 0.5}, {scaleY: 0.5}]}}>
<Text>Text here!</Text>
</View> |
Updated docs to remove this, working on fixing it up to better display those options under the @vjeux also informed me of something interesting: the reason that these are in an array in separate objects inside of the |
thanks @brentvatne for clearing things up. would switching order between |
@amitverma - nope, those should be the same as they scale the X and Y axis independently and irrespective of aspect ratio. Another interesting thing to know is you can apply transforms multiple times:
|
See #1181 for doc fix |
I have been trying to use
scaleX
andscaleY
on a<View/>
component, but it is not working. Do I need to keep something in mind while using it?The text was updated successfully, but these errors were encountered: