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
4f2957c5fc
commit
bdbdc77e60
1 changed files with 2 additions and 2 deletions
|
@ -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 }}>
|
||||
|
|
Loading…
Add table
Reference in a new issue