在我的react native应用程序中,我有一个很棒的字体图标。我要旋转它。需要帮助。
import React from 'react'
import { View } from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome5';
const InfoBox = () => {
return (
<View >
<Icon name={'hand-holding-usd'} size={20}/>
</View>
)
}
export default InfoBox;
答案 0 :(得分:4)
您可以使用style
道具旋转图标。根据需要更改旋转的角度/方向
<Icon name={'hand-holding-usd'}
size={20}
style={{transform: [{rotateY: '180deg'}]}}/>