react-native-simi-comps
Version:
Simple Minimal Components for React Native
18 lines • 667 B
JavaScript
import React from "react";
import { usePrimaryColor } from "../PrimaryColorContext";
import IconButton from "./IconButton";
export default function FAB(_a) {
var _b = _a.icon, icon = _b === void 0 ? "plus" : _b, onPress = _a.onPress;
var primaryColor = usePrimaryColor();
return (React.createElement(IconButton, { onPress: onPress, style: {
position: "absolute",
bottom: 24,
right: 24,
zIndex: 3,
padding: 24,
borderWidth: 0,
borderRadius: 36,
backgroundColor: primaryColor
}, color: "#fff", icon: icon, size: 24 }));
}
//# sourceMappingURL=FAB.js.map