diff --git a/Template.js b/Template.js index 73716b8..965079c 100644 --- a/Template.js +++ b/Template.js @@ -8,7 +8,7 @@ const Component = () => { // View ----------------------- return ( - + ); }; diff --git a/package-lock.json b/package-lock.json index 65b89e7..362c06a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "1.0.0", "dependencies": { "@expo/vector-icons": "^15.0.3", + "@react-native-picker/picker": "^2.11.4", "@react-navigation/native": "^7.1.18", "@react-navigation/native-stack": "^7.5.1", "expo": "^54.0.20", @@ -3054,6 +3055,19 @@ "node": ">=14" } }, + "node_modules/@react-native-picker/picker": { + "version": "2.11.4", + "resolved": "https://registry.npmjs.org/@react-native-picker/picker/-/picker-2.11.4.tgz", + "integrity": "sha512-Kf8h1AMnBo54b1fdiVylP2P/iFcZqzpMYcglC28EEFB1DEnOjsNr6Ucqc+3R9e91vHxEDnhZFbYDmAe79P2gjA==", + "license": "MIT", + "workspaces": [ + "example" + ], + "peerDependencies": { + "react": "*", + "react-native": "*" + } + }, "node_modules/@react-native/assets-registry": { "version": "0.81.5", "resolved": "https://registry.npmjs.org/@react-native/assets-registry/-/assets-registry-0.81.5.tgz", diff --git a/package.json b/package.json index 47f7106..edb9d14 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ }, "dependencies": { "@expo/vector-icons": "^15.0.3", + "@react-native-picker/picker": "^2.11.4", "@react-navigation/native": "^7.1.18", "@react-navigation/native-stack": "^7.5.1", "expo": "^54.0.20", diff --git a/src/components/UI/Form.js b/src/components/UI/Form.js new file mode 100644 index 0000000..394c141 --- /dev/null +++ b/src/components/UI/Form.js @@ -0,0 +1,114 @@ +import {KeyboardAvoidingView, ScrollView, StyleSheet, Text, TextInput, View} from "react-native"; +import {Picker} from "@react-native-picker/picker"; + +import {Button, ButtonTray} from "./Button"; +import Icons from "./Icons"; + + +const Form = ({children, onSubmit, onCancel, submitLabel, submitIcon}) => { + + // Initialisation ------------- + // State ---------------------- + // Handlers ------------------- + // View ----------------------- + + return ( + + + + {children} + + + +