diff --git a/frontend/app/(app)/(tabs)/beer/add.js b/frontend/app/(app)/(tabs)/beer/add.js index cb38922..0bdb726 100644 --- a/frontend/app/(app)/(tabs)/beer/add.js +++ b/frontend/app/(app)/(tabs)/beer/add.js @@ -1,9 +1,12 @@ import { StyleSheet, TextInput, View, Image } from "react-native"; import { useState } from "react"; import Button from "@components/Button"; +import Text from "@components/Text"; import { colors } from "@components/style"; import * as ImagePicker from "expo-image-picker"; import DropDownPicker from "react-native-dropdown-picker"; +/* import DropdownTheme from "@components/DropdownTheme"; */ +const DropdownTheme = require("@components/DropdownTheme"); export default function BeerAdd() { const [b_name, setBName] = useState(""); @@ -16,13 +19,16 @@ export default function BeerAdd() { const [open, setOpen] = useState(false); const [value, setValue] = useState(null); const [items, setItems] = useState([ - { label: "Can", value: "can" }, + { label: "Tank beer", value: "tank" }, + { label: "Cask beer", value: "cask" }, { label: "Glass bottle", value: "glass" }, - { label: "Oddel barrel", value: "barrel" }, - { label: "Tank", value: "tank" }, - { label: "PET bottle", value: "PET" }, + { label: "Can", value: "can" }, + { label: "PET bottle", value: "pet" }, ]); + DropDownPicker.addTheme("DropdownTheme", DropdownTheme); + DropDownPicker.setTheme("DropdownTheme"); + ImagePicker.getCameraPermissionsAsync(); //check if the user has granted permission to access the camera const pickImage = async () => { const permissionResult = @@ -96,6 +102,9 @@ export default function BeerAdd() { return ( + + Spill your thoughts about the beer you just sipped! +