r/ScriptingApp • u/Haunting-Ad-655 • Apr 28 '25
Help How to auto-focus a search bar using searchable?
Do we need autofocus prop or is there a method?
return <NavigationStack>
<List
navigationTitle={"Searchable List"}
navigationBarTitleDisplayMode={"inline"}
searchable={{
value: searchText,
onChanged: setSearchText,
}}
>
1
Upvotes
View all comments
Show parent comment
1
u/Haunting-Ad-655 May 08 '25
Let's refer to how Shortcuts handle its responsive grid view. I suppose there must be a formula to decide the number of columns so that their cells/rectangles' width stays within a desired range. Currently, Scripting's grid view commits to 5 columns regardless of the window width: when the window is narrow, rectangles will become almost squares.