mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
Merge pull request #6388 from BlueWallet/layout
FIX: for search it should be layouteffect
This commit is contained in:
commit
fe4e82eb1f
@ -1,4 +1,4 @@
|
||||
import React, { useEffect, useRef, useContext, useState } from 'react';
|
||||
import React, { useEffect, useRef, useContext, useState, useLayoutEffect } from 'react';
|
||||
import { StyleSheet, useColorScheme, Platform } from 'react-native';
|
||||
import DraggableFlatList, { ScaleDecorator } from 'react-native-draggable-flatlist';
|
||||
import navigationStyle from '../../components/navigationStyle';
|
||||
@ -54,7 +54,7 @@ const ReorderWallets = () => {
|
||||
setWalletData(filteredWallets);
|
||||
}, [wallets, searchQuery]);
|
||||
|
||||
useEffect(() => {
|
||||
useLayoutEffect(() => {
|
||||
// Set navigation options dynamically
|
||||
setOptions({
|
||||
headerSearchBarOptions: {
|
||||
|
Loading…
Reference in New Issue
Block a user