Skip to content

Commit

Permalink
chore: make improvement only on android
Browse files Browse the repository at this point in the history
  • Loading branch information
MounirDhahri committed Apr 29, 2024
1 parent b7594ff commit b201507
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/Scenes/Search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ import { SEARCH_PILLS, SEARCH_THROTTLE_INTERVAL, TOP_PILL } from "./constants"
import { getContextModuleByPillName } from "./helpers"
import { PillType } from "./types"

// This is a workaround for the placeholder text not truncated on android
// See https://github.com/facebook/react-native/issues/29663
const SEARCH_INPUT_PLACEHOLDER =
Dimensions.get("screen").width - 150 > 250
? "Search artists, artworks, galleries, etc"
: "Search artists, artworks, etc"
Platform.OS === "android" && Dimensions.get("screen").width - 150 < 250
? "Search artists, artworks, etc"
: "Search artists, artworks, galleries, etc"

export const searchQueryDefaultVariables: SearchQuery$variables = {
term: "",
Expand Down

0 comments on commit b201507

Please sign in to comment.