1 | import React from 'react';
|
2 | import { View } from 'react-native';
|
3 | import { requireNativeViewManager } from '@unimodules/core';
|
4 |
|
5 | type Props = {
|
6 | colors: number[];
|
7 | locations?: number[] | null;
|
8 | startPoint?: Point | null;
|
9 | endPoint?: Point | null;
|
10 | } & React.ComponentProps<typeof View>;
|
11 |
|
12 | type Point = [number, number];
|
13 |
|
14 | export default class NativeLinearGradient extends React.PureComponent<Props> {
|
15 | render() {
|
16 | return <BaseNativeLinearGradient {...this.props} />;
|
17 | }
|
18 | }
|
19 |
|
20 | const BaseNativeLinearGradient = requireNativeViewManager('ExpoLinearGradient');
|