1.0.1 • Published 4 years ago
react-native-animated-scrollable-screen v1.0.1
react-native-animated-scrollable-screen
Lightweight Scrollable screen wrapper with header animation and sticky section.
100% written in TypeScript
Installation
npm install react-native-animated-scrollable-screen --saveor
yarn add react-native-animated-scrollable-screenUsage
import { ANScrollableScreen } from 'react-native-animated-scrollable-screen'
<ANScrollableScreen
ExtentionComp={<ExtentionComp />}
StickyComp={<StickyComp />}
LeftHeaderComp={
<View>
<Button title={'Button'} />
</View>
}
RightHeaderComp={
<View>
<Image
style={styles.hederLRcompImg}
source={require('./assets/bg.jpeg')}
/>
</View>
}
SubHeaderIconComp={<Text>Ahmed Ashry</Text>}
RenderDataItems={RenderItems}
imageURI={'https://picsum.photos/seed/picsum/200/300'}
imageSrc={require('./assets/bg.jpeg')}
avatarContainerStyle={[styles.bgColor, styles.avatarContainerStyle]}
headerContainerStyle={[styles.bgColor, styles.headerContainerStyle]}
/>Props
ExtentionComp OptionalCustom React component
StickyComp OptionalCustom React component
LeftHeaderComp OptionalCustom React component
RightHeaderComp OptionalCustom React component
SubHeaderIconComp OptionalCustom React component
RenderDataItems OptionalFunction to render list items
imageURI OptionalRemote image source
imageSrc OptionalLocal image source
avatarContainerStyle OptionalCustom style to the main image container
headerContainerStyle OptionalCustom style to the header container