viettel-ekyc-sdk
Version:
23 lines • 792 B
JavaScript
import React from 'react';
import { View, StyleSheet } from 'react-native';
export const LinearGradient = () => {
const gradientHeight = 700;
const gradientBackground = '#8D0000';
const data = Array.from({ length: gradientHeight });
return (React.createElement(View, { style: styles.container }, data.map((_, i) => (React.createElement(View, { key: i, style: {
position: 'absolute',
backgroundColor: gradientBackground,
height: 1,
bottom: (gradientHeight - i - 1),
right: 0,
left: 0,
zIndex: 2,
opacity: 1 - (1 / gradientHeight) * (i + 1)
} })))));
};
const styles = StyleSheet.create({
container: {
flex: 1
}
});
//# sourceMappingURL=LinearGradient.js.map