mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-23 15:20:55 +01:00
Update FloatButtons.tsx
This commit is contained in:
parent
387c3c40a6
commit
4f2957c5fc
1 changed files with 1 additions and 2 deletions
|
@ -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 }}>
|
||||
|
|
Loading…
Add table
Reference in a new issue