react-native-swipeup
Beautiful Card Swiper to React Native
Examples
Installation
Yarn
yarn add react-native-swipeup
Npm
npm i react-native-swipeup
Usage
;;; { superprops; thisstate = serverData: ; const apiKey = 'enter your api key '; const pageSize = 20; const url = `https://newsapi.org/v2/top-headlines?country=in&apiKey=` ; } { return <View style=alignSelf: 'center'> <Card key=itemtitle image=uri: itemurlToImage> <Text style=marginBottom: 10 height: 50 width: null> itemdescription </Text> </Card> </View> ; } { return <View style= height: '100%' width: '100%' justifyContent: 'center' alignItems: 'center' backgroundColor: 'pink' > <Text>No More News at this Post Please come after some time</Text> </View> ; } { return <View style=stylescontainer> <Upswipe data=thisstateserverData renderCard=thisrenderCard renderNoMoreCards=thisrenderNoMoreCards /> </View> ; } const styles = StyleSheet;;
Options/Props
<Upswipe data=thisstateserverData renderCard=thisrenderCard renderNoMoreCards=thisrenderNoMoreCards/> ## License MIT © Kush Kumarhttps://github.com/kush11/react-native-swipeup.git)