Skip to content

Commit

Permalink
Increase max players to 12
Browse files Browse the repository at this point in the history
  • Loading branch information
wyne committed Nov 13, 2023
1 parent 7689e91 commit 5541752
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/screens/SettingsScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from 'react';
import { Platform, PlatformIOSStatic, Text, View, StyleSheet, Alert } from 'react-native';
import { Text, View, StyleSheet, Alert } from 'react-native';
import { useAppDispatch, useAppSelector } from '../../redux/hooks';
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view';
import { Icon, Button } from 'react-native-elements';
Expand Down Expand Up @@ -34,13 +34,7 @@ const SettingsScreen: React.FunctionComponent<Props> = ({ navigation }) => {
return currentGame.playerIds.indexOf(a.id) - currentGame.playerIds.indexOf(b.id);
});

const maxPlayers = (() => {
if (Platform.OS === 'ios') {
const platformIOS = Platform as PlatformIOSStatic;
return platformIOS.isPad ? 12 : 8;
}
return 8;
})();
const maxPlayers = 12;

const addPlayerHandler = async () => {
if (currentGame == undefined) return;
Expand Down

0 comments on commit 5541752

Please sign in to comment.