mirror of
https://github.com/austinried/subtracks.git
synced 2025-12-27 17:19:27 +01:00
19 lines
546 B
TypeScript
19 lines
546 B
TypeScript
import React from 'react'
|
|
import { ScrollView, ScrollViewProps, ViewStyle } from 'react-native'
|
|
import colors from '@app/styles/colors'
|
|
import GradientBackground from '@app/components/GradientBackground'
|
|
|
|
const GradientScrollView: React.FC<ScrollViewProps> = props => {
|
|
props.style = props.style || {}
|
|
;(props.style as ViewStyle).backgroundColor = colors.gradient.low
|
|
|
|
return (
|
|
<ScrollView overScrollMode="never" {...props}>
|
|
<GradientBackground />
|
|
{props.children}
|
|
</ScrollView>
|
|
)
|
|
}
|
|
|
|
export default GradientScrollView
|