Merge pull request #6388 from BlueWallet/layout

FIX: for search it should be layouteffect
This commit is contained in:
GLaDOS 2024-04-09 15:39:55 +00:00 committed by GitHub
commit fe4e82eb1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: {