mirror of
https://github.com/mudabbir-ahmad/MAD-Treasure-Hunt.git
synced 2026-10-08 03:00:20 +00:00
Add game lobby, registration, and game type pages
This commit is contained in:
1 parent
71a52da85b
commit
81847a9188
4 files changed
+79
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import React, { useState } from 'react';
|
||||
import { View, TextInput, Button } from 'react-native';
|
||||
|
||||
const JoinPrivateGamePage = () => {
|
||||
const [joinCode, setJoinCode] = useState('');
|
||||
|
||||
const handleJoinGame = () => {
|
||||
// Logic to check join code and redirect to game lobby
|
||||
};
|
||||
|
||||
return (
|
||||
<View>
|
||||
<TextInput placeholder="Enter Join Code" value={joinCode} onChangeText={setJoinCode} />
|
||||
<Button title="Join Game" onPress={handleJoinGame} />
|
||||
</View>
|
||||
);
|
||||
};
|
||||
|
||||
export default JoinPrivateGamePage;
|
||||
Reference in new issue
Block a user