Merge pull request #29 from djwesty/djwesty/24
Application main page, remove top bar
This commit is contained in:
commit
07721bc054
1
.gitignore
vendored
1
.gitignore
vendored
@ -38,3 +38,4 @@ yarn-error.*
|
|||||||
app-example
|
app-example
|
||||||
android
|
android
|
||||||
.env
|
.env
|
||||||
|
coverage
|
@ -1,5 +1,7 @@
|
|||||||
import { Stack } from "expo-router";
|
import { Stack } from "expo-router";
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
export default function RootLayout() {
|
const RootLayout: React.FC = () => (
|
||||||
return <Stack />;
|
<Stack screenOptions={{ headerShown: true, title: "Poker Chips Helper" }} />
|
||||||
}
|
);
|
||||||
|
export default RootLayout;
|
||||||
|
@ -6,7 +6,7 @@ import ChipsSelector from "@/components/ChipsSelector";
|
|||||||
import ChipDistributionSummary from "@/components/ChipDistributionSummary";
|
import ChipDistributionSummary from "@/components/ChipDistributionSummary";
|
||||||
import ChipDetection from "@/components/ChipDetection";
|
import ChipDetection from "@/components/ChipDetection";
|
||||||
|
|
||||||
const IndexScreen = () => {
|
const IndexScreen: React.FC = () => {
|
||||||
const [playerCount, setPlayerCount] = useState(2);
|
const [playerCount, setPlayerCount] = useState(2);
|
||||||
const [buyInAmount, setBuyInAmount] = useState<number | null>(null);
|
const [buyInAmount, setBuyInAmount] = useState<number | null>(null);
|
||||||
const [numberOfChips, setNumberOfChips] = useState<number>(5);
|
const [numberOfChips, setNumberOfChips] = useState<number>(5);
|
||||||
@ -34,9 +34,6 @@ const IndexScreen = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<ScrollView contentContainerStyle={{ padding: 20, flexGrow: 1 }}>
|
<ScrollView contentContainerStyle={{ padding: 20, flexGrow: 1 }}>
|
||||||
<Text style={{ fontSize: 24, marginBottom: 30, marginTop: 50 }}>
|
|
||||||
Poker Chip Helper
|
|
||||||
</Text>
|
|
||||||
<PlayerSelector
|
<PlayerSelector
|
||||||
playerCount={playerCount}
|
playerCount={playerCount}
|
||||||
setPlayerCount={setPlayerCount}
|
setPlayerCount={setPlayerCount}
|
||||||
|
Loading…
Reference in New Issue
Block a user