Skip to content

Commit

Permalink
fix(mobile): Use keyboard avoiding view in the info page
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Nov 24, 2024
1 parent 1a2b600 commit 5a49691
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
4 changes: 2 additions & 2 deletions apps/mobile/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"NSAllowsLocalNetworking": true
}
},
"buildNumber": "18"
"buildNumber": "19"
},
"android": {
"adaptiveIcon": {
Expand All @@ -48,7 +48,7 @@
}
},
"package": "app.hoarder.hoardermobile",
"versionCode": 18
"versionCode": 19
},
"plugins": [
"expo-router",
Expand Down
27 changes: 17 additions & 10 deletions apps/mobile/app/dashboard/bookmarks/[slug]/info.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import React from "react";
import {
Keyboard,
KeyboardAvoidingView,
Platform,
Pressable,
ScrollView,
Text,
Expand Down Expand Up @@ -184,16 +186,21 @@ const ViewBookmarkPage = () => {
),
}}
/>
<ScrollView className="h-screen w-full p-4">
<TouchableWithoutFeedback onPress={Keyboard.dismiss}>
<View className="gap-4 px-2">
<TitleEditor bookmarkId={bookmark.id} title={title ?? ""} />
<TagList bookmark={bookmark} />
<ManageLists bookmark={bookmark} />
<NotesEditor bookmark={bookmark} />
</View>
</TouchableWithoutFeedback>
</ScrollView>
<KeyboardAvoidingView
behavior={Platform.OS === "ios" ? "padding" : "height"}
className="pb-2"
>
<ScrollView className="h-screen w-full p-4">
<TouchableWithoutFeedback onPress={Keyboard.dismiss}>
<View className="gap-4 px-2">
<TitleEditor bookmarkId={bookmark.id} title={title ?? ""} />
<TagList bookmark={bookmark} />
<ManageLists bookmark={bookmark} />
<NotesEditor bookmark={bookmark} />
</View>
</TouchableWithoutFeedback>
</ScrollView>
</KeyboardAvoidingView>
</CustomSafeAreaView>
);
};
Expand Down

0 comments on commit 5a49691

Please sign in to comment.