mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 16:34:54 +00:00
fixes, deleteFamily function, household signup
This commit is contained in:
@ -41,14 +41,9 @@ const GroceryWrapper = () => {
|
||||
|
||||
const handleInputFocus = (y: number) => {
|
||||
if (scrollViewRef.current) {
|
||||
// Get the window height
|
||||
const windowHeight = Dimensions.get('window').height;
|
||||
// Calculate the space we want to leave at the top
|
||||
const topSpacing = 20;
|
||||
|
||||
// Calculate the target scroll position:
|
||||
// y (position of input) - topSpacing (space we want at top)
|
||||
// if keyboard is shown, we need to account for its height
|
||||
const scrollPosition = Math.max(0, y - topSpacing);
|
||||
|
||||
scrollViewRef.current.scrollTo({
|
||||
|
||||
Reference in New Issue
Block a user