From 8995438b9a8649d30d870826d0f8fbf283d68933 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 12 May 2024 17:51:35 +0530 Subject: Fix problem with autofocus in textinput --- src/screens/AppList.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/screens/AppList.tsx b/src/screens/AppList.tsx index 187fbed..ec83124 100644 --- a/src/screens/AppList.tsx +++ b/src/screens/AppList.tsx @@ -3,7 +3,10 @@ import React, {useMemo, useState} from 'react'; import {ScrollView, Text, TextInput, View} from 'react-native'; import {AppDetail} from 'react-native-launcher-kit/typescript/Interfaces/InstalledApps'; -export const AppList: React.FC<{apps: AppDetail[]}> = ({apps}) => { +export const AppList: React.FC<{apps: AppDetail[]; screenIndex: number}> = ({ + apps, + screenIndex, +}) => { const [searchText, setSearchText] = useState(''); const filteredApps = useMemo(() => { @@ -16,6 +19,7 @@ export const AppList: React.FC<{apps: AppDetail[]}> = ({apps}) => {