Update FloatButtons.tsx

This commit is contained in:
Marcos Rodriguez Velez 2024-01-05 21:15:42 -04:00
parent 4f2957c5fc
commit bdbdc77e60
No known key found for this signature in database
GPG key ID: 6030B2F48CCE86D7

View file

@ -32,7 +32,7 @@ interface FContainerProps {
inline?: boolean;
}
export const FContainer = forwardRef<View, FContainerProps>((props: { children: any; inline: any }, ref: any) => {
export const FContainer = forwardRef<View, FContainerProps>((props, ref) => {
const [newWidth, setNewWidth] = useState<number | undefined>(undefined);
const layoutCalculated = useRef(false);
const bottomInsets = { bottom: 38 };
@ -63,7 +63,7 @@ export const FContainer = forwardRef<View, FContainerProps>((props: { children:
{newWidth
? React.Children.toArray(props.children)
.filter(Boolean)
.map((child: any, index: number, array: string | any[]) => {
.map((child, index, array) => {
if (typeof child === 'string') {
return (
<View key={index} style={{ width: newWidth }}>