1.0.5 • Published 2 years ago

react-native-tournament-bracket v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

react-native-tournament-bracket

Tournament brackets for mobile

This package is currently in beta and as such is not ready for production use. The ReadMe will not be filled out until actual release.

The component uses most of the same props and functionality as it's sister React package. This can be found at https://www.npmjs.com/package/react-svg-tournament-bracket.

Here are some of the extra props included in the Native package:

Prop NameTypeDescription
manualZoomNumberBracket can be pinched to zoom in and out, but if you want to be able to set and reset the zoom level with a button or slider you can use this prop. Allowable values are between 0.5 and 3.
setManualZoomFunction => voidCallback used to listen to the pinch event and track the zoom level when pinched. Also used in conjunction with manualZoom to set a custom zoom level.
allowPinchBooleanSet to true by default, can be set to false to prevent the user from being able to pinch to zoom
onSelectMatchLongPressFunction => voidCallback which captures a long press on the match link between two teams. Same signature as onSelectMatch.
onSelectTeamLongPressFunction => voidCallback which captures a long press on a team. Same signature as onSelectTeam.