From 0ebe0844650ea974a9e54b0749233b06e097ecd2 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Sat, 24 Sep 2022 14:07:03 +1200 Subject: [PATCH] Remove color setting from MassiveFab This makes the button automatically adjust according to what the user has set the primary color to be. Seems that with the default dark theme the cyan makes the text not the same color as the Button, but this still looks better than the statically set colors from before. --- MassiveFab.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/MassiveFab.tsx b/MassiveFab.tsx index d32a50c..16f2f29 100644 --- a/MassiveFab.tsx +++ b/MassiveFab.tsx @@ -1,19 +1,16 @@ import React, {useContext} from 'react'; -import {useColorScheme} from 'react-native'; import {FAB} from 'react-native-paper'; -import {CombinedDarkTheme, CustomTheme} from './App'; +import {CustomTheme} from './App'; export default function MassiveFab( props: Partial>, ) { - const dark = useColorScheme() === 'dark'; const {color} = useContext(CustomTheme); return (