import _ from 'lodash'; import React, {Component} from 'react'; import {StyleSheet, ScrollView} from 'react-native'; import { Colors, Text, View, Image, withScrollReached, // eslint-disable-next-line no-unused-vars WithScrollReachedProps } from 'react-native-ui-lib'; // @ts-ignore import {renderHeader} from '../ExampleScreenPresenter'; const FADE_OUT_HEIGHT = 100; const fadeImage = require('../../assets/images/FadeOut.png'); class WithScrollReachedScreen extends Component { renderItem = (index: number) => { return ( {index + 1} ); }; render() { return ( {renderHeader('withScrollReached', {'marginB-10': true})} {_.times(3, this.renderItem)} {!this.props.scrollReachedProps.isScrollAtEnd && ( // @ts-expect-error )} ); } } export default withScrollReached(WithScrollReachedScreen); const styles = StyleSheet.create({ scrollView: { height: 240 }, scrollViewContainer: { alignItems: 'center' }, item: { width: 100, height: 100, margin: 9, backgroundColor: Colors.grey40, alignItems: 'center', justifyContent: 'center' }, fadeOutImage: { position: 'absolute', bottom: 0, height: FADE_OUT_HEIGHT, width: '100%' } });