Massive/MassiveFab.tsx
Brandon Presley 0ebe084465 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.
2022-09-24 14:07:25 +12:00

23 lines
446 B
TypeScript

import React, {useContext} from 'react';
import {FAB} from 'react-native-paper';
import {CustomTheme} from './App';
export default function MassiveFab(
props: Partial<React.ComponentProps<typeof FAB>>,
) {
const {color} = useContext(CustomTheme);
return (
<FAB
{...props}
icon="add"
style={{
position: 'absolute',
right: 10,
bottom: 60,
backgroundColor: color,
}}
/>
);
}