Skip to content

Cannot read property 'GradientMaskView' of undefined #1

@nexquery

Description

@nexquery

How do I fix this problem?
I'm using React Native version 0.85.3.

import { processColor } from 'react-native';
import { GradientMaskView } from 'react-native-gradient-mask';

const colors: (number | null)[] = [
  processColor('rgba(0,0,0,0)') as number,
  processColor('rgba(0,0,0,0.5)') as number,
  processColor('rgba(0,0,0,1)') as number,
];

<GradientMaskView colors={colors} locations={[0, 1]} direction="top" style={{ flex: 1 }}>
    <Text>Test</Text>
</GradientMaskView>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions