diff --git a/components/FloatButtons.tsx b/components/FloatButtons.tsx index 5dff3692d..a41698eb0 100644 --- a/components/FloatButtons.tsx +++ b/components/FloatButtons.tsx @@ -1,7 +1,6 @@ import React, { useState, useRef, forwardRef, ReactNode } from 'react'; import { View, Text, TouchableOpacity, StyleSheet, Dimensions, PixelRatio } from 'react-native'; import { useTheme } from './themes'; -import { useSafeAreaInsets } from 'react-native-safe-area-context'; const BORDER_RADIUS = 30; const PADDINGS = 8; @@ -64,7 +63,7 @@ export const FContainer = forwardRef((props: { children: {newWidth ? React.Children.toArray(props.children) .filter(Boolean) - .map((child, index, array) => { + .map((child: any, index: number, array: string | any[]) => { if (typeof child === 'string') { return (