mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-03-20 07:39:07 -04:00
Refresh credential list on focus (#771)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Image, StyleSheet, Platform, Button, View, FlatList, Text } from 'react-native';
|
||||
import { NativeModules } from 'react-native';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { useFocusEffect } from '@react-navigation/native';
|
||||
|
||||
import { HelloWave } from '@/components/HelloWave';
|
||||
import ParallaxScrollView from '@/components/ParallaxScrollView';
|
||||
@@ -29,6 +30,10 @@ export default function HomeScreen() {
|
||||
fetchCredentials();
|
||||
}, []);
|
||||
|
||||
useFocusEffect(() => {
|
||||
fetchCredentials();
|
||||
});
|
||||
|
||||
const handleInsertEntry = async () => {
|
||||
// Generate a random credential
|
||||
const randomUsername = `user${Math.floor(Math.random() * 1000)}`;
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
"extends": "expo/tsconfig.base",
|
||||
"compilerOptions": {
|
||||
"strict": true,
|
||||
"moduleResolution": "bundler",
|
||||
"paths": {
|
||||
"@/*": [
|
||||
"./*"
|
||||
|
||||
Reference in New Issue
Block a user