Skip to content

Commit

Permalink
fix: use cross-platform selectionColor instead of android-only cursor…
Browse files Browse the repository at this point in the history
…Color
  • Loading branch information
reneaaron committed Sep 6, 2024
1 parent f5cafc8 commit de7bddc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion components/DualCurrencyInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@ export function DualCurrencyInput({
placeholder="0"
keyboardType="number-pad"
value={inputMode === "sats" ? amount : fiatAmount}
cursorColor={CURSOR_COLOR}
selectionColor={CURSOR_COLOR}
onChangeText={onChangeText}
aria-labelledbyledBy="amount"
style={styles.amountInput}
autoFocus={autoFocus}
returnKeyType="done"
// aria-errormessage="inputError"
/>
<Pressable onPress={toggleInputMode}>
Expand Down
2 changes: 1 addition & 1 deletion components/ui/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Input = React.forwardRef<
props.editable === false && 'opacity-50 web:cursor-not-allowed',
className
)}
cursorColor={CURSOR_COLOR}
selectionColor={CURSOR_COLOR}
placeholderClassName={cn('text-muted-foreground', placeholderClassName)}
{...props}
/>
Expand Down

0 comments on commit de7bddc

Please sign in to comment.