Update FloatButtons.tsx

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

View file

@ -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<View, FContainerProps>((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 (
<View key={index} style={{ width: newWidth }}>