React Native SDK (Tournaments)
Headless Demographic Form usage examples for the ReactNative SDK
Overview
Methods
getRecomendedTournaments
import { LucraSDK } from 'lucra-react-native-sdk';
try {
const tournaments = await LucraSDK.getRecomendedTournaments({
limit: 50,
includeClosed: true,
});
tournaments.forEach(tournament => {
console.log(`Tournament: ${tournament.title}`);
});
} catch (error) {
// Handle error scenario
console.error('Failed to fetch tournaments:', error);
}tournamentMatchup
joinTournament
Errors
Error Types
Error Handling Example
Type Definitions
PoolTournament
PoolTournamentParticipant
Events
Tournament Joined Event
Usage Examples
1. Joining Tournaments with Automatic Error Handling
2. Launching Demographic Form Independently
3. Manual Demographic Data Validation
Migration Guide
Troubleshooting
Last updated