Open harshalkd opened 5 years ago
Sorry, please allow me to advertise for my open source library! ~ I think this library react-native-reanimated-carousel will solve your problem. It is a high performance and very simple component, complete with React-Native reanimated 2
HI team I want to integrate inshorts type UI so below is my code for that
main.js
const isTinder = type === 'stack'; return ( <View style={[styles.exampleContainer, isTinder ? styles.exampleContainerDark : styles.exampleContainerLight]}>
<Carousel ref={'carousel'} //data={isTinder ? this.state.data : ENTRIES1} data={this.state.data} //renderItem={isTinder ? this._renderLightItem : this._renderItem} renderItem={this._renderItem}
sliderWidth={sliderWidth} itemWidth={itemWidth}
itemHeight={screenHeight} sliderHeight={screenHeight} containerCustomStyle={styles.slider} contentContainerCustomStyle={styles.sliderContentContainer} layout={type} loop={false} vertical={true}
animation.js file
export function stackAnimatedStyles (index, animatedValue, carouselProps, cardOffset) { const sizeRef = carouselProps.vertical ? carouselProps.itemHeight : carouselProps.itemWidth; const translateProp = carouselProps.vertical ? 'translateY' : 'translateX';
}
I face below issue https://im.ezgif.com/tmp/ezgif-1-c08cf2d7316e.gif
I want inshort app type UI when user swipe bottom at that time opacity of first card shoudl not down so how can i solve this ? Please help me out on this issue