diff --git a/package-lock.json b/package-lock.json index 3d38cf6..6e4a376 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "0.0.1", "dependencies": { "@react-native-async-storage/async-storage": "^2.2.0", + "@react-native-picker/picker": "^2.11.1", "@react-native/new-app-screen": "0.80.1", "@react-navigation/bottom-tabs": "^7.4.2", "@react-navigation/native": "^7.1.14", @@ -2989,6 +2990,19 @@ "node": ">=10" } }, + "node_modules/@react-native-picker/picker": { + "version": "2.11.1", + "resolved": "https://registry.npmmirror.com/@react-native-picker/picker/-/picker-2.11.1.tgz", + "integrity": "sha512-ThklnkK4fV3yynnIIRBkxxjxR4IFbdMNJVF6tlLdOJ/zEFUEFUEdXY0KmH0iYzMwY8W4/InWsLiA7AkpAbnexA==", + "license": "MIT", + "workspaces": [ + "example" + ], + "peerDependencies": { + "react": "*", + "react-native": "*" + } + }, "node_modules/@react-native/assets-registry": { "version": "0.80.1", "resolved": "https://registry.npmmirror.com/@react-native/assets-registry/-/assets-registry-0.80.1.tgz", diff --git a/package.json b/package.json index 4d49da3..0b06553 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ }, "dependencies": { "@react-native-async-storage/async-storage": "^2.2.0", + "@react-native-picker/picker": "^2.11.1", "@react-native/new-app-screen": "0.80.1", "@react-navigation/bottom-tabs": "^7.4.2", "@react-navigation/native": "^7.1.14", diff --git a/src/components/BottomActionBar.tsx b/src/components/BottomActionBar.tsx index a0b86d0..8cc9f4e 100644 --- a/src/components/BottomActionBar.tsx +++ b/src/components/BottomActionBar.tsx @@ -1,13 +1,11 @@ import React from 'react'; -import { View, StyleSheet } from 'react-native'; -import { Button, useTheme } from '@rneui/themed'; +import { View, StyleSheet, TouchableOpacity, Text } from 'react-native'; import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; interface BottomActionBarProps { onRun: () => void; onSave: () => void; onUndo: () => void; - onRestore: () => void; onBack: () => void; isSaveDisabled?: boolean; } @@ -16,34 +14,78 @@ const BottomActionBar: React.FC = ({ onRun, onSave, onUndo, - onRestore, onBack, isSaveDisabled = true, }) => { - const { theme } = useTheme(); - return ( - -