Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.
This repository was archived by the owner on Dec 1, 2025. It is now read-only.

does not work #29

@Kaizodo

Description

@Kaizodo

描述 / Description

import { ScrollView, Text, View } from 'react-native'
import { ClipPathView } from 'react-native-clippathview'

export default function Test2Screen() {
    const viewBox = [0, 0, 400, 400]
    const path = '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 (
        <ScrollView style={{ width: '100%', height: '100%' }}>
            <ClipPathView d={path} style={{ backgroundColor: '#ff0' }}>
                <Text style={{ lineHeight: 5, fontSize: 6 }}>children</Text>
                <Text style={{ lineHeight: 5, fontSize: 6 }}>children</Text>
                <Text style={{ lineHeight: 5, fontSize: 6 }}>children</Text>
            </ClipPathView>
        </ScrollView>
    )
}

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions