ViewPagerAndroid#setPage()

setPage(selectedPage: number) A helper function to scroll to a specific page in the ViewPager. The transition between pages will be animated.

ViewPagerAndroid#pageMargin

pageMargin number Blank space to show between pages. This is only visible while scrolling, pages are still edge-to-edge.

ViewPagerAndroid#scrollEnabled

scrollEnabled bool When false, the content does not scroll. The default value is true.

ViewPagerAndroid#onPageScrollStateChanged

onPageScrollStateChanged function Function called when the page scrolling state has changed. The page scrolling state can be in 3 states: - idle, meaning there is no interaction with the page scroller happening at the time - dragging, meaning there is currently an interaction with the page scroller - settling, meaning that there was an interaction with the page scroller, and the page scroller is now finishing it's closing or opening animation

ViewPagerAndroid#onPageSelected

onPageSelected function This callback will be called once ViewPager finish navigating to selected page (when user swipes between pages). The event.nativeEvent object passed to this callback will have following fields: - position - index of page that has been selected

ViewPagerAndroid#keyboardDismissMode

keyboardDismissMode enum('none', 'on-drag') Determines whether the keyboard gets dismissed in response to a drag. - 'none' (the default), drags do not dismiss the keyboard. - 'on-drag', the keyboard is dismissed when a drag begins.

ViewPagerAndroid#initialPage

initialPage number Index of initial page that should be selected. Use setPage method to update the page, and onPageSelected to monitor page changes

ViewPagerAndroid#onPageScroll

onPageScroll function Executed when transitioning between pages (ether because of animation for the requested page change or when user is swiping/dragging between pages) The event.nativeEvent object for this callback will carry following data: - position - index of first page from the left that is currently visible - offset - value from range [0,1) describing stage between page transitions. Value x means that (1 - x) fraction of the page at "position" index is visible, and x fraction of the ne

View#style

style style Flexbox... ShadowPropTypesIOS#style... Transforms... backfaceVisibility enum('visible', 'hidden') backgroundColor color borderBottomColor color borderBottomLeftRadius number borderBottomRightRadius number borderBottomWidth number borderColor color borderLeftColor color borderLeftWidth number borderRadius number borderRightColor color borderRightWidth number borderStyle enum('solid', 'dotted', 'dashed') borderTopColor color borderTopLeftRadius number borderTopRightRa

View#testID

testID string Used to locate this view in end-to-end tests. NB: disables the 'layout-only view removal' optimization for this view!