Open Asad-wego opened 1 year ago
can anyone help me in this please.
My code snipt
const onScroll = (e: any) => { console.log("onScroll:::: ", e); }; const itemSizeGetter = (index: number) => { return window.innerWidth; }; <List ref={viewPagerRef} initialScrollOffset={lastKnownScrollOffset} height={"100%"} itemCount={steps[localPreference.config.currentPos].length} layout={"horizontal"} width={window.innerWidth} // Adjust the width to fit all the items onScroll={onScroll} itemSize={itemSizeGetter} direction={window.isRtl ? "rtl" : "ltr"} > {renderItem} </List>
can anyone help me in this please.
My code snipt