Skip to content

Commit

Permalink
Fix open wallet loading dialog on ios (#2239)
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss authored and stackchain committed Nov 28, 2022
1 parent 6ee7768 commit b1b4564
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/SelectedWallet/WalletSelection/WalletSelectionScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {useNavigation} from '@react-navigation/native'
import React from 'react'
import {defineMessages, useIntl} from 'react-intl'
import {FlatList, Linking, RefreshControl, StyleSheet, Text, TouchableOpacity} from 'react-native'
import {FlatList, InteractionManager, Linking, RefreshControl, StyleSheet, Text, TouchableOpacity} from 'react-native'
import {SafeAreaView} from 'react-native-safe-area-context'

import {useAuth} from '../../auth/AuthProvider'
Expand Down Expand Up @@ -40,7 +40,13 @@ export const WalletSelectionScreen = () => {
selectWalletMeta(walletMeta)
selectWallet(wallet)

navigateToTxHistory()
// fixes modal issue
// https://github.com/facebook/react-native/issues/32329
// https://github.com/facebook/react-native/issues/33733
// https://github.com/facebook/react-native/issues/29319
InteractionManager.runAfterInteractions(() => {
navigateToTxHistory()
})
},
onError: async (error) => {
closeWallet()
Expand Down

0 comments on commit b1b4564

Please sign in to comment.