-
-
Save garrettmac/bccb7cd2fc02162a2964e9380d750f6b to your computer and use it in GitHub Desktop.
a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a |
iconFamily -> iconSet
hideEmptyDots -> showEmptyDots
dotThemeLight => lightTheme
paginationContainerStyle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
<Pagination
dotThemeLight //<--use with backgroundColor:"grey"
listRef={this.refs}//to allow React Native Pagination to scroll to item when clicked (so add "ref={r=>this.refs=r}" to your list)
paginationVisibleItems={this.state.viewableItems}//needs to track what the user sees
paginationItems={this.state.items}//pass the same list as data
paginationItemPadSize={3} //num of items to pad above and below your visable items
more params you can play with
hideEmptyDots
pagingEnabled
dotSwapAxis
dotPositionSwap
disableDotOnPressNavigation
dotOnPress={(item)=>alert(JSON.stringify(item))}
startDotOnPress={(item)=>alert("pressed startDotOnPress")}
endDotOnPress={(item)=>alert("pressed endDotOnPress")}
startDotIconFamily="Ionicons"
startDotIconName="ios-arrow-back"
endDotIconFamily="Ionicons"
endDotIconName="ios-arrow-forward"
dotIconNameActive={"contacts"}
dotTextColor={"red"}
dotTextColorActive={"green"}
dotTextColorNotActive={"red"}
dotTextColorEmpty={"blue"}
dotIconColorActive={"green"}
dotIconColorNotActive={"red"}
dotIconColorEmpty={"blue"}
/>