diff options
| author | Akshay Nair <phenax5@gmail.com> | 2024-05-12 17:51:35 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2024-09-29 16:16:38 +0530 |
| commit | 8995438b9a8649d30d870826d0f8fbf283d68933 (patch) | |
| tree | f43c9b4247a0551230e959709c5404150745c09c /src/screens/AppList.tsx | |
| parent | ec6782ba68d15706b1d5e3490704aa98c216a3d7 (diff) | |
| download | daft-launcher-8995438b9a8649d30d870826d0f8fbf283d68933.tar.gz daft-launcher-8995438b9a8649d30d870826d0f8fbf283d68933.zip | |
Fix problem with autofocus in textinput
Diffstat (limited to 'src/screens/AppList.tsx')
| -rw-r--r-- | src/screens/AppList.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
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}) => { <View> <View> <TextInput + key={screenIndex} autoFocus autoCorrect={false} value={searchText} |
