// Global Imports import * as React from 'react'; import { TouchableOpacity, Image } from 'react-native'; // Local Imports import { ScrollToTopStyle } from '@Styles'; import { IScrollToTop } from '@Interfaces'; export class ScrollToTopComponent extends React.PureComponent { public render(): JSX.Element { const { goToUp, stickyBottomButton } = this.props; if (stickyBottomButton) { return ( goToUp()} activeOpacity={0.8} style={ScrollToTopStyle.container}> ); } return null } }