RotationView 旋转视图

RotationView 封装了需要旋转动画的视图容器。

代码演示

绕边缘转圈形式

import { RotationView } from 'tuya-panel-kit'
<RotationView style={{ width: 198, height: 198, marginTop: 20 }} active={true}>
<Image
style={{
width: 198,
height: 198,
resizeMode: 'contain',
}}
source={{
uri:
'https://panel-docs.tuyacn.com/assets/rotate-view-3.png',
}}
/>
</RotationView>

绕中心转圈

import { RotationView } from 'tuya-panel-kit'
<RotationView style={{ width: 198, height: 198, marginTop: 20 }} active={true}>
<Image
style={{
width: 198,
height: 198,
resizeMode: 'contain',
}}
source={{
uri:
'https://panel-docs.tuyacn.com/assets/rotate-view-4.png',
}}
/>
</RotationView>

API

tuya02:55