Skip to content

Commit 9eb93c7

Browse files
committed
Fix purple highlight on ripple (iOS).
1 parent a862289 commit 9eb93c7

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/Time/TimeInput.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
import * as React from 'react'
2-
import { View, TextInput, TextInputProps, StyleSheet } from 'react-native'
2+
import {
3+
View,
4+
TextInput,
5+
TextInputProps,
6+
StyleSheet,
7+
Platform,
8+
} from 'react-native'
39
import { useTheme, TouchableRipple } from 'react-native-paper'
410

511
import Color from 'color'
@@ -99,7 +105,11 @@ function TimeInput(
99105
borderRadius: theme.roundness,
100106
},
101107
]}
102-
rippleColor={Color(theme.colors.primary).fade(0.7).hex()}
108+
rippleColor={
109+
Platform.OS !== 'ios'
110+
? Color(theme.colors.onSurface).fade(0.7).hex()
111+
: undefined
112+
}
103113
onPress={() => onPress(clockType)}
104114
borderless={true}
105115
>

0 commit comments

Comments
 (0)