aboutsummaryrefslogtreecommitdiff
path: root/src/components/common/TabsGradient.tsx
blob: a95e8bc3d86384441fdb2e22c05b4b27f6b127dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import React from 'react';
import LinearGradient from 'react-native-linear-gradient';
import {StyleSheet} from 'react-native';
import {SCREEN_HEIGHT, SCREEN_WIDTH} from '../../utils';

const TabsGradient: React.FC = () => {
  return (
    <LinearGradient
      locations={[0, 1]}
      colors={['transparent', 'rgba(0, 0, 0, 0.7)']}
      style={styles.gradient}
    />
  );
};
const styles = StyleSheet.create({
  gradient: {
    position: 'absolute',
    top: (SCREEN_HEIGHT / 10) * 9,
    height: SCREEN_HEIGHT / 10,
    width: SCREEN_WIDTH,
  },
});
export default TabsGradient;