You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 1, 2025. It is now read-only.
import{ScrollView,Text,View}from'react-native'import{ClipPathView}from'react-native-clippathview'exportdefaultfunctionTest2Screen(){constviewBox=[0,0,400,400]constpath='M 200 0 L 280 100 L 400 160 L 330 270 L 320 400 L 200 350 L 80 400 L 80 270 L 0 160 L 120 100 Z'return(<ScrollViewstyle={{width: '100%',height: '100%'}}><ClipPathViewd={path}style={{backgroundColor: '#ff0'}}><Textstyle={{lineHeight: 5,fontSize: 6}}>children</Text><Textstyle={{lineHeight: 5,fontSize: 6}}>children</Text><Textstyle={{lineHeight: 5,fontSize: 6}}>children</Text></ClipPathView></ScrollView>)}
error :- JSX element class does not support attributes because it does not have a 'props' property
描述 / Description
error :-
JSX element class does not support attributes because it does not have a 'props' property复现步骤 / Steps to reproduce
No response
库版本 / Library version
1
React Native OpenHarmony version
1
构建类型 / Build type
None
设备 / Device
None
设备版本 / Device model
No response
已悉知 / Acknowledgements
Yes