From 162d67c351853982fd8f2f0b22e7c491c57ec9ce Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Tue, 15 Nov 2022 19:51:15 +1300 Subject: [PATCH] Start work on pickers that work on android+ios --- MassiveFab.tsx | 4 ++-- Select.tsx | 25 ++++++++++++++---------- SetForm.tsx | 1 + SettingsPage.tsx | 51 ++++++++++++++++++++++++------------------------ package.json | 1 + yarn.lock | 21 ++++++++++++++++++++ 6 files changed, 66 insertions(+), 37 deletions(-) diff --git a/MassiveFab.tsx b/MassiveFab.tsx index 7024860..4eea451 100644 --- a/MassiveFab.tsx +++ b/MassiveFab.tsx @@ -17,8 +17,8 @@ export default function MassiveFab(props: Partial>) { color={fabColor} style={{ position: 'absolute', - right: 10, - bottom: 10, + right: 20, + bottom: 20, backgroundColor: color, }} {...props} diff --git a/Select.tsx b/Select.tsx index deb66b1..953dcbf 100644 --- a/Select.tsx +++ b/Select.tsx @@ -1,24 +1,29 @@ -import {Picker} from '@react-native-picker/picker' import {useTheme} from 'react-native-paper' +import RNPickerSelect from 'react-native-picker-select' +import {Item} from 'react-native-picker-select' export default function Select({ value, onChange, - children, + items, }: { value: string onChange: (value: string) => void - children: JSX.Element | JSX.Element[] + items: Item[] }) { const {colors} = useTheme() return ( - - {children} - + ) } diff --git a/SetForm.tsx b/SetForm.tsx index f24286d..507303d 100644 --- a/SetForm.tsx +++ b/SetForm.tsx @@ -151,6 +151,7 @@ export default function SetForm({