react-native-multi-color-view
Version:
A React Native component for creating multi-color gradient views
18 lines (17 loc) • 432 B
TypeScript
import React from 'react';
import { ViewStyle, ViewProps, StyleProp } from 'react-native';
interface GradientViewProps extends ViewProps {
colors?: string[];
start?: {
x: number;
y: number;
};
end?: {
x: number;
y: number;
};
style?: StyleProp<ViewStyle>;
children?: React.ReactNode;
}
declare const GradientView: React.FC<GradientViewProps>;
export default GradientView;